K
K.K.
Hello all,
I just have a VB.net standard and trying to use the 'old method' (as I did
in VB6) to display some record from my SQL2000 DB.... but it's not
working...
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.ClickDim Adocon As ADODB.Connection
Global Const CONN_STRING_PPS As String = "Provider=SQLOLEDB.1;" & _
"Persist Security Info=False;User ID=sa;Password=mypswd;" & _
"Initial Catalog=dbsMyDB;Data Source=MyServer"
Adocon.Open(conn_string)
sSql = "Select * from .... blar blar blar"
set rs1 = adocon.execute(sSql)
.......
End sub
I tried to use the server explorer but it return the popular "this version
of vb.net can only connect to the SQL server desktop engine...." - seems the
solution is never answered....
Can someone suggest me how do I get this task done? Thanks in Advance~~
K.K.
I just have a VB.net standard and trying to use the 'old method' (as I did
in VB6) to display some record from my SQL2000 DB.... but it's not
working...
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.ClickDim Adocon As ADODB.Connection
Global Const CONN_STRING_PPS As String = "Provider=SQLOLEDB.1;" & _
"Persist Security Info=False;User ID=sa;Password=mypswd;" & _
"Initial Catalog=dbsMyDB;Data Source=MyServer"
Adocon.Open(conn_string)
sSql = "Select * from .... blar blar blar"
set rs1 = adocon.execute(sSql)
.......
End sub
I tried to use the server explorer but it return the popular "this version
of vb.net can only connect to the SQL server desktop engine...." - seems the
solution is never answered....
Can someone suggest me how do I get this task done? Thanks in Advance~~
K.K.