Can you create ODBC connections using VBScript? 
Author Message
 Can you create ODBC connections using VBScript?

    I am wanting to setup the actual ODBC connection parameters using
VBScript.  Is this possible?


Sat, 15 Jan 2005 22:44:34 GMT  
 Can you create ODBC connections using VBScript?
Yes you can...  Check out this page for a great script.
http://www.swynk.com/winscript/DOCS_AutoDSN.asp

This requires the database server to use windows integrated authentication
however..  Not SQL authentication.

If anyone knows how to configure a script for SQL authentication
please let me know.  I've been searching for weeks with no luck so far.
Thanks.

Bill Tillson


Quote:
>     I am wanting to setup the actual ODBC connection parameters using
> VBscript.  Is this possible?



Sat, 15 Jan 2005 23:00:10 GMT  
 Can you create ODBC connections using VBScript?
    Thanks Bill,

It looks like this might be possible with WMI & VBScript as well.  I have
posted on the WMI board to try to find the classes and properties I need to
set.  I found some WMI classes that relate to ODBC, but am not advanced
enough to know exactly what to set.

Ryan


Quote:
> Yes you can...  Check out this page for a great script.
> http://www.swynk.com/winscript/DOCS_AutoDSN.asp

> This requires the database server to use windows integrated authentication
> however..  Not SQL authentication.

> If anyone knows how to configure a script for SQL authentication
> please let me know.  I've been searching for weeks with no luck so far.
> Thanks.

> Bill Tillson



> >     I am wanting to setup the actual ODBC connection parameters using
> > VBscript.  Is this possible?



Sat, 15 Jan 2005 23:26:33 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. ODBC connections using ODBC

2. Use VBSCRIPT to create ODBC connection

3. Jscript to create a connection to WTS using ActiveX TSAC: no errors but no connection

4. ODBC Connection in VBScript

5. Create ODBC connect using vb

6. Creating an ODBC DSN with VBScript

7. VBScript using ADO or ODBC

8. Create Dial-up connection with VBScript and WSH

9. ODBC Connection Error Trapping

10. ODBC Connection

11. inserting/updating BLOB files in MSSQL ODBC connection via ASP

12. SQL Connection with a System DSN (ODBC)

 

 
Powered by phpBB® Forum Software