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
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.
PROD table seems have chopped name from tables in TESTing server
Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.
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.