This is a crossover problem -- I'm accessing an MS SQL Server database from SAS on Windows 2000 via OLE DB. I've decided that the problem area is OLE which is Microsoft shite technology, hence placement here.
Some of the following may be specific to SAS, but I'm trying to work out how to get the general properties for an OLE DB connection.
\r\n\r\nI'm trying to work out the syntax for this, docs and Google offer thin comfort. SAS Tech support doesn't know any better (first tier anyhow) either.
\r\n\r\nI've an ODBC data source configured to an MS SQL database server. This connection used as an ODBC source works flawlessly.
\r\n\r\nI've configured an OLE-DB (OLEDB) connection to this ODBC source using a UDL file, foo.udl. This specifies the ODBC connection to use, but nothing else (bless Microsoft's binary configuration formats, there's no useful way I'm aware to dump the settings here).
\r\n\r\nI can connect to this source interactively, selecting the "provider"\r\n("Microsoft OLE DB Provider for ODBC Drivers") and "data source" ("SQLDB" as configured).
\r\n\r\nTrying to set up a noninteractive connection has stumped me. Best I've come up with is:
\r\n\r\n\r\n\r\n\r\n\r\n proc sql;\r\n connect to oledb as bar\r\n provider='Microsoft.Jet.OLEDB.4.0'\r\n properties=('data source'='Desktop/foo.udl')\r\n );\r\n\r\n
...which results in an error.
\r\n