cancel
Turn on suggestions
Showing results for
Search instead for
Did you mean:
BookmarkSubscribeRSS Feed
Calcite | Level 5

Hi everyone,

I’m accessing Snowflake tables through SAS Data Integration Studio using the Snowflake connector.

When I register table from Snowflake in SAS DI, I noticed that VARCHAR(n) columns are automatically assigned LENGTH=3n in SAS metadata.
For example: VARCHAR(2) becomes LENGTH=6.

Why does this happen, even though both systems use UTF-8?

Thanks in advance!

0 Likes
4 REPLIES 4
PROC Star

We use SAS/ACCESS Interface to Snowflake too and see the same behaviour.

A Google search suggests that this could be standard Snowflake behaviour: https://community.snowflake.com/s/article/Varchar-length-implicitly-increases-if-column-is-Uppercase...

0 Likes
Calcite | Level 5

Hi everyone,

I’m accessing Snowflake tables through SAS Data Integration Studio using the Snowflake connector.

When I register table from Snowflake in SAS DI, I noticed that VARCHAR(n) columns are automatically assigned LENGTH=3n in SAS metadata.
For example: VARCHAR(2) becomes LENGTH=6. Why does this happen, even though both systems use UTF-8?

Thanks in advance!

0 Likes

sasinnovate.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just 495ドル!

Register now

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
[フレーム]

AltStyle によって変換されたページ (->オリジナル) /