SAS Proc SQL Database Table Insert -


Using SAS Proq SQL, is there a way to insert records from a SAS dataset into a table in an open SQL Server connection?

  proc sql exec; Connect from Sqlservr to DataSrc (server = my-db-srvr database = SasProcSqlTest); Select objects as table * * Connection from datasource * (selection * FROM tblItem); Updated item set name = name + name, value * 2; Choose from TblItem (name, price) name, price item; Disconnect from dataset; Skip; Run; leave; Run;  

For my knowledge, using pass pass through SQL stops you on the database server SAS Documentation says that you should primarily make a library reference for the database and then database tables should be treated like SAS tables. In your case it is only normal proc sql, it should mean at least in the latest SAS versions, but not optimal for large tables.

What we have done to circumvent it

  1. Create a table
  2. Pass through update
  3. Temporary database - The table should not be session-specific
  4. Drop the table in Temp DB, in the table created bulk load data from CAS.

Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -