OLEDB
, is used. The functionality
of multiple connections to the same OLE DB provider might be limited
by a particular provider.
proc sql; connect to oledb as finance (user=username password=password datasource=dwtsrv1 provider=sqloledb); select * from connection to finance (select * from payroll where jobcode='FA3'); quit;
c:\dbase\tst.dbf
, and in SQL Server, the
value might be test.customer
. In addition,
depending on the data source that you use, values for an "Owner" argument
might be a user ID, a database name, or a library. All arguments are
optional. If you specify some but not all arguments within a parameter,
use commas to indicate omitted arguments. If you do not specify any
parameters, no commas are necessary. These special queries might not
be available for all OLE DB providers.
proc sql; connect to oledb(provider=sqloledb properties=("User ID"=testuser Password=testpass "Data Source"='dwtsrv1')); select * from connection to oledb (OLEDB::TABLES(,"HRDEPT")); quit;
proc sql; connect to oledb(provider=msdaora properties=("User ID"=testuser Password=testpass "Data Source"="Oraserver")); select * from connection to oledb (OLEDB::PROVIDER_INFO()); quit;
PROVIDER_NAME PROVIDER_DESCRIPTION PROVIDER_PROPERTIES ------------- -------------------- ------------------- MSDAORA Microsoft OLE DB Password;User ID;Data Provider for Oracle Source;Window Handle;Locale Identifier;OLE DB Services; Prompt; Extended Properties; SampProv Microsoft OLE DB Data Source;Window Handle; Sample Provider Prompt;