export ODBCHOME=/dbi/odbc/dd7.1.4 export ODBCINI=/ODBC/odbc_714_MASTER.ini LD_LIBRARY_PATH=/dbi/odbc/dd7.1.4/lib:${LD_LIBRARY_PATH} export LD_LIBRARY_PATH=${LD_LIBRARY_PATH%:}
driver=sql;conopts=(driver=odbc; catalog=acat;conopts=(dsn=ODBCPgresDD;pwd=Tester2))
Option
|
Description
|
---|---|
CATALOG
|
CATALOG=catalog-identifier; Specifies an arbitrary
identifier for an SQL catalog, which groups logically related schemas.
For databases that do not support native catalogs, any identifier
is valid (for example, catalog=myodbc). For databases like Microsoft
SQL Server that do support native
catalogs, CATALOG= is not required. The connection defaults to CATALOG=*
unless you specify a logical name for the catalog and map it to the
native catalog name in the database. For example, to map the logical
catalog
mycat to the native catalog named newusers ,
use the following command: catalog=(mycat=newusers); .
Catalog name maps can be used only with FedSQL. They are not valid
with native SQL.
Note: The FedSQL language processor
automatically quotes SQL identifiers that do not meet the regular
naming convention as defined in SAS FedSQL Reference Guide.
|
CONOPTS
|
CONOPTS=(ODBC—compliant
database connection string); Specifies an ODBC-compliant
database connection string using ODBC-style syntax. These options,
combined with the ODBC_DSN option, must specify a complete connection
string to the data source. If you include a DSN= or FILEDSN= specification
within the CONOPTS= option, do not use the ODBC_DSN= connection option.
However, you can specify the ODBC database-specific connection options
by using CONOPTS=. Then you can specify an ODBC DSN that contains
other connection information by using the ODBC_DSN= connection option.
Here is an example string
using the CONOPTS option:
driver=sql;conopts=((driver=odbc;catalog=acat; conopts=(dsn=ODBCPgresDD;pwd=Tester2)); (driver=postgres;catalog=bcat;uid=myuid;pwd='123pass'; server=sv.abc.123.com;port=5432;DB=mydb;schema=public)) |
DRIVER
|
DRIVER=ODBC ;
Calls the table services
driver for ODBC. This specifies that the data service to which you
want to connect must be an ODBC-compliant database.
Note: DRIVER is a required option.
You must specify the driver.
|
ODBC_DSN
|
ODBC_DSN=odbc
dsn name Specifies a valid ODBC-compliant
database DSN that contains connection information for connecting to
the ODBC-compliant database. You can use the CONOPTS= option in addition
to ODBC_DSN= option to specify database-specific connection options
not provided by table services. Do not specify the ODBC DSN in both
CONOPTS= and ODBC_DSN=.
|
driver=sql;conopts=((driver=odbc;catalog=acat; conopts=(dsn=ODBCPgresDD;pwd=Tester2)); (driver=postgres;catalog=bcat;uid=myuid;pwd='123pass'; server=sv.abc.123.com;port=5432;DB=mydb;schema=public))
driver=odbc; uid=jfox; pw=mypw; odbc_dsn=mySQLdsn; catalog=(cat1=mycat; cat2=testcat; cat3=users;
Windows
|
The options are located
on the Advanced or Performance tabs
in the ODBC Administrator window.
|
UNIX
|
The options are available
when configuring data sources using the ODBC Administrator tool. Values
can also be set by editing the
odbc.ini file
in which their data sources are defined.
|