DBLOAD Procedure Specifics for ODBC

Overview

For general information about this feature, see the DBLOAD Procedure. ODBC examples are available.

SAS/ACCESS Interface to ODBC supports all DBLOAD procedure statements (except ACCDESC=) in batch mode. Here are the DBLOAD procedure specifics for ODBC:

Examples

This example creates a new ODBC table, MYUSR1.EXCHANGE, from the DLIB.RATEOFEX data file. You must be granted the appropriate privileges in order to create new ODBC tables or views.

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

This next example sends only an ODBC 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=odbc;
   user='myusr1';
   password='mypwd1';
   dsn=sample;
   sql grant select on myusr1.exchange
      to testcase;
run;
Last updated: February 3, 2026