SAS connection string 
Author Message
 SAS connection string

I need to connect to a SAS dataset in my VB code. I normally connected to
Microsoft Access and this is the first time I need to connect to a different
database.

Is there anyone that has the code for the connection to a SAS dataset.

Thanks
Alfred



Fri, 12 Sep 2003 18:34:15 GMT  
 SAS connection string
You must first install SAS ODBC driver. The connection string can be
found on SAS web site.

http://www.sas.com/rnd/eai/oledb/dbs001.htm gives some info.
The provider to use depends how data is accessed. There are 3
providers
SAS IOM Data Provider
SAS Local Data Provider
SAS/SHARE Data Provider

for local data, use something like

obConnection.Provider = "SAS Local Data Provider"
obConnection.Properties("Data Source") = "C:\My Documents\SAS Files"
obConnection.Properties("SAS File Format")="V8"
obConnection.Open

On Mon, 26 Mar 2001 12:34:15 +0200, "alfred.puth"

Quote:

>I need to connect to a SAS dataset in my VB code. I normally connected to
>Microsoft Access and this is the first time I need to connect to a different
>database.

>Is there anyone that has the code for the connection to a SAS dataset.

>Thanks
>Alfred



Fri, 12 Sep 2003 21:17:19 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Unable to import SAS data into ACCESS97 or EXCEL 2000 using the SAS ODBC driver

2. MS SQL connection string for remote internet connection?

3. Need Connection string for VB6 DAO DSN-LESS Connections to SQL Server 2000

4. Connection string for DSN-less Informix connection

5. Connection String vs. Connection Object

6. Connection: changing connection string in data environment

7. Need Connection string for VB6 DAO DSN-LESS Connections to SQL Server 2000

8. Connection Obj vs. Connection String

9. diff between active connection & connection string help

10. Excel to SAS

11. vb and sas tables

12. VB 4.0 Enterprise with SAS & ODBC

 

 
Powered by phpBB® Forum Software