Hi, I'm facing a problem with explicit pass throughs to SQL server database. The following code works fine : options sastrace=',,,d' sastraceloc=saslog nostsuffix; %let dsn = <mydatabase>; %let authdomain = <myauthdomain>; libname tempdb odbc dsn=&dsn. authdomain=&authdomain. connection=shared; data test; date = '01JAN2019'd ; datetime = '01JAN2019:00:00'dt ; run; data tempdb.'#test'n; set test; run; data test; set tempdb.'#test'n; run; However when I do the following : proc sql; connect to odbc as test (dsn=&dsn. authdomain=&authdomain. connection=shared); execute ( create table #datumtijd ( datum DATE, datumtijd DATETIME, ) ) by test; quit; data test; set tempdb.'#datumtijd'n; run; I get the message : ERROR: File TEMPDB.'#datumtijd'n.DATA does not exist. Why is that ? I would like to insert the data from '#test'n into '#datumtijd'n. Like this : proc sql; connect to odbc as test (dsn=&dsn. authdomain=&authdomain. connection=shared); execute ( INSERT INTO #datumtijd SELECT * FROM #test) by test ; disconnect from odbc; quit; Thanks for your help !! Regards BB
... View more