BookmarkSubscribeRSS Feed
imdickson
Quartz | Level 8

Hi Guys. I am using SAS Data Integration Studio 4.902 to do ETL jobs.

 

Recently, there is a column that requires to change to 5000 characters from 2000.

I am using Microsoft SQL and SAS DI is connected through ODBC Driver.

 

My column in SQL is nvarchar(MAX) and if i do Append in Table Loader, I will get this error:

 

ERROR: Error binding parameters: [Microsoft][SQL Server Native Client 11.0]Invalid precision value

I did some checking online but there are 2 "solutions" suggested:

1) set bulkload=yes in libname statement(Doesn't work)

2) use NCHAR(MAX) as NVARCHAR(MAX) only allows up to 4000 words.

 

May i know if there is alternative solution?

2 REPLIES 2
ChrisNZ
Tourmaline | Level 20

A bit confused here. Dont you need to change type the field in SQL server? 

imdickson
Quartz | Level 8
It's Ok.
What i meant was that nvarchar(max) in SQL does not support more than 4000 words. What i did was change to NTEXT in SQL and it works like a charm.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 477 views
  • 1 like
  • 2 in conversation