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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>SAS</strong>/<strong>ACCESS</strong> Interface to Microsoft SQL Server 4 LIBNAME Statement Data Conversions 603Microsoft SQL Server Data TypeSQL_BINARYSQL_VARBINARYSQL_LONGVARBINARYSQL_DECIMALSQL_NUMERICDefault <strong>SAS</strong> Format$n.*$n.*$n.*m or m.n or none if m and n are not specifiedm or m.n or none if m and n are not specifiedSQL_INTEGER 11.SQL_SMALLINT 6.SQL_TINYINT 4.SQL_BIT 1.SQL_REALSQL_FLOATSQL_DOUBLEnonenonenoneSQL_BIGINT 20.SQL_DATESQL_TIMESQL_TIMESTAMPDATE9.TIME8.Microsoft SQL Server cannot support fractionsof seconds <strong>for</strong> time valuesDATETIMEm.n where m and n depend onprecision* Because the Microsoft SQL Server driver does the conversion, this field displays as if the $HEXn.<strong>for</strong>mat were applied.The following table shows the default data types that the Microsoft SQL Serverinterface uses when creating tables.Table 20.5Default Microsoft SQL Server Output Data Types<strong>SAS</strong> Variable Formatm.n$n.datetime <strong>for</strong>matsdate <strong>for</strong>matstime <strong>for</strong>matsDefault Microsoft SQL Server Data TypeSQL_DOUBLE or SQL_NUMERIC using m.n ifthe DBMS allows itSQL_VARCHAR using nSQL_TIMESTAMPSQL_DATESQL_TIMEThe Microsoft SQL Server interface allows non-default data types to be specified withthe DBTYPE= data set option.

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

Saved successfully!

Ooh no, something went wrong!