Search Tools Links Login

Connection String Generator


Visual Basic 6, or VB Classic

These 9 lines of VBSCript code access the OLE DB Service Provider Type Library that is installed with ADO and will build a connection string to ANY database supported by OLE DB. Simply launch the VBScript file enclosed in the attached ZIP file, on the first tab select your Provider (Access, Oracle, SQL Server, etc), Click Next and enter your connection info (login, password, server name, etc), click Test Connection to test connection and when ready, click OK. When OK is clicked it will popup a VB InputBox that has your connection string as the default value in the text box. Simply copy the string and click Cancel to end the script.
The original Artical is from the 11th Annual VBPJ Tech-Tips issue and can be found in its entitity at www.vbpj.com in its archives.

Original Author: Leo Mrozek

Assumptions

Assumes that you know the basic parameters to connect to the database you need to connect to (i.e. Login, Password, Server, database name, etc)

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 107 times

Categories

Visual Basic 6

Attachments

Connection631813182002.zip
Posted: 9/3/2020 3:45:00 PM
Size: 1,157 bytes


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.