VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Connection String Generator

Leo Mrozek  (2 Submissions)   Databases/Data Access/DAO/ADO   Visual Basic 3.0   Beginner   Wed 3rd February 2021

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.

Assumes
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)

Rate Connection String Generator (9(9 Vote))

Download Connection String Generator

Connection String Generator Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters