469,306 Members | 2,012 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,306 developers. It's quick & easy.

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 911

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
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.