Previous Page | Next Page

SAS/ACCESS Interface to Microsoft SQL Server

DBLOAD Procedure Specifics for Microsoft SQL Server


Overview

For general information about this feature, see See DBLOAD Procedure. Microsoft SQL Server examples are available.

The Microsoft SQL Server under UNIX hosts interface supports all DBLOAD procedure statements (except ACCDESC=) in batch mode. Here are SAS/ACCESS Interface to Microsoft SQL Server specifics for the DBLOAD procedure.


Examples

The following example creates a new Microsoft SQL Server table, TESTUSER.EXCHANGE, from the DLIB.RATEOFEX data file. You must be granted the appropriate privileges in order to create new Microsoft SQL Server tables or views.

proc dbload dbms=SQLSVR data=dlib.rateofex;
   dsn=sample; 
   user='testuser'; 
   password='testpass';
   table=exchange;
   rename fgnindol=fgnindollars 
          4=dollarsinfgn;
   nulls updated=n fgnindollars=n 
         dollarsinfgn=n country=n;
   load;
run;

The following example only sends a Microsoft SQL Server SQL GRANT statement to the SAMPLE database and does not create a new table. Therefore, the TABLE= and LOAD statements are omitted.

proc dbload dbms=SQLSVR;
   user='testuser';
   password='testpass';
   dsn=sample;
   sql grant select on testuser.exchange 
      to dbitest;
run;

Previous Page | Next Page | Top of Page