BookmarkSubscribeRSS Feed
Jade_SAS
Pyrite | Level 9

Hi All,

 

    I have one testing SAS server and one production SAS server. I tested the pass through to SQL data connection coding, it works on testing server, but not on production SAS server, I wonder what is the possible reason.

 

   Config: Same ODBD.ini file on both SAS servers(testing and production).

                Same coding

  

The coding is as below:

  

proc sql;

connect to odbc (noprompt = "dsn=**;DRIVER=SQLServer;uid=**;pwd=**;");

create table test as

select * from connection to odbc

(SELECT *

FROM [**].[**].[**]

)

;

disconnect from odbc;

quit;

 

The Error for the production server is as beow:

ERROR: CLI describe error: [

NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.

 disconnect from odbc;

NOTE: Statement not executed due to NOEXEC option.

quit;

NOTE: The SAS System stopped processing this step because of errors.

 

 

Thank you!

Jade

2 REPLIES 2
Jade_SAS
Pyrite | Level 9

1)  if I try libname at schema level, the table show in TESTing is the same at SQL studio, see attachment TEST.

 LIBNAME sqltest odbc Password=** User=** DATASRC=** schema=dbo;

 

 2) if  if I try libname at schema level in Production server,  the table show in Production seems have chopped name (in my case, the table only have letter s, whihc is the initial letter of those tables in TEST server), see attachment PROD.


TEST.png
Jade_SAS
Pyrite | Level 9

PROD table seems have chopped name from tables in TESTing server


PROD.png

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 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
  • 2 replies
  • 754 views
  • 0 likes
  • 1 in conversation