472,127 Members | 1,608 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,127 software developers and data experts.

unable to connect VB 6.0 to sql server2000

Private Sub Form_Load()
con
cnItem.Open
cnItem.Open "select * from login", Connection, adOpenDynamic, adLockOptimistic
rs.Open "select * from login", Connection, adOpenDynamic, adLockOptimistic
cnItem.ConnectionString = "DRIVER=SQL Server;SERVER=SANKET;APP=Visual Basic;WSID=SANKET;DATABASE=inventory;Network=DBMSL PCN;Trusted_Connection=Yes"
'cnItem.ConnectionString = "Provider=MSDASQL.1;Persist Security Info=False;Extended Properties="DRIVER=SQL Server;SERVER=SANKET;APP=Visual Basic;WSID=SANKET;DATABASE=inventory;Network=DBMSL PCN;Trusted_Connection=Yes"
Command.ActiveConnection = cnItem
Dim ResultSet As New ADODB.Recordset
Command.CommandText = "WELCOME"

End Sub
Dec 17 '11 #1
0 947

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Martin | last post: by
21 posts views Thread by Steve | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.