Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sybase 6.0 Connection String!

Status
Not open for further replies.

johnvai

IS-IT--Management
Oct 4, 2003
127
LB
Dear friends:

the connection string in VB6 that I am using to connect to sybase 5.0.5 database is:
Db.ConnectionString = "Provider=MSDASQL.1;Password=6things;Persist Security Info=True;User ID=dba;Data Source=POS"

but while trying to open a sybase 6 database the same conenction is not working and giving microsoft error.

can you help me please?
thanks
 
Im not sure with ASA 6, but i've been using this with ASA 5.5 and ASA 7 and it works for me.
(Taking your data)
Code:
 UID = "dba"
 PWD = "6things"
 OpenString = "PROVIDER=MSDASQL.1;DSN=POS;"
 DataEnvironment1.Connection1.Open OpenString, UID, PWD
For more info on the DataEnvironment and security, you should refer to the vb6 forum.

Hope this helps,

David.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top