13.07.2015 Views

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>SAS</strong>/<strong>ACCESS</strong> Interface to ODBC 4 Overview 671DSN= ODBC-data-source;specifies the name of the data source in which you want to store the newODBC table. The data-source is limited to eight characters.The data source that you specify must already exist. If the data sourcename contains the _, $, @, or # special character, you must enclose it inquotation marks. The ODBC standard recommends against using specialcharacters in data source names, however.USER= user name;lets you connect to an ODBC database with a user ID that is different fromthe default ID. USER= is optional in ODBC. If you specify USER=, you mustalso specify PASSWORD=. If USER= is omitted, your default user ID is used.PASSWORD=password;specifies the ODBC password that is associated with your user ID.PASSWORD= is optional in ODBC because users have default user IDs. Ifyou specify USER=, you must specify PASSWORD=.Note: If you do not wish to enter your ODBC password in uncoded text onthis statement, see PROC PWENCODE in Base <strong>SAS</strong> Procedures Guide<strong>for</strong> amethod to encode it. 4BULKCOPY= YES|NO;determines whether <strong>SAS</strong> uses the Microsoft Bulk Copy facility to insert datainto a DBMS table (Microsoft SQL Server only). The default value is NO.The Microsoft Bulk Copy (BCP) facility lets you efficiently insert rows ofdata into a DBMS table as a unit. As the ODBC interface sends each row ofdata to BCP, the data is written to an input buffer. When you have insertedall rows or the buffer reaches a certain size (the DBCOMMIT= data setoption determines this), all rows are inserted as a unit into the table, and thedata is committed to the table.You can also set the DBCOMMIT=n option to commit rows after every ninsertions.If an error occurs, a message is written to the <strong>SAS</strong> log, and any rows thathave been inserted in the table be<strong>for</strong>e the error are rolled back.Note: BULKCOPY= is not supported on UNIX. 43 Here is the TABLE= statement:TABLE= table-name;identifies the table or view that you want to use to create an accessdescriptor. The TABLE= statement is required.The authorization-id is a user ID or group ID that is associated with thetable.3 Here is the NULLS statement:NULLS variable-identifier-1 =Y|N|D < . . . variable-identifier-n =Y|N|D >;enables you to specify whether the columns that are associated with thelisted <strong>SAS</strong> variables allow NULL values. By default, all columns acceptNULL values.The NULLS statement accepts any one of these three values:Y – specifies that the column accepts NULL values. This is the default.N – specifies that the column does not accept NULL values.D – specifies that the column is defined as NOT NULL WITH DEFAULT.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!