I have a client that insists on staying with SQL 2000 and wants his app converted to VS 2008. I am running into the Multiple Active Record Sets or MARS problem with 2008. Below is how I am getting to my data.
Do I have any options here? Can I get the data another way? I know the deeper I get into the app I am going to need nested recordsets for master detail type stuff.
Help!
Here is my connection string
ConnectionString = "Server=" & strDataSource & ";" & _
"DataBase=" & strSQLDB & ";" & _
"Integrated Security=SSPI;Connect Timeout=5"
cnSQL = New SqlConnection(ConnectionString)
Here is how I am getting data for forms
Dim cmSQL As SqlCommand
Dim rsCLT As SqlDataReader
cmSQL = New SqlCommand("Select * from tblclient where cltid = " & cltID, cnSQL)
rsCLT = cmSQL.ExecuteReader()
rsCLT.Read()
Here is how I am populating DexExpress xtraGRID
Dim DBCommandE As SqlDataAdapter
Dim DSPageDataE As New DataTable
DBCommandE = New SqlDataAdapter _
("select id, from tblenroll where cltid = " & cltID, cnSQL)
DBCommandE.Fill(DSPageDataE)
Do I have any options here? Can I get the data another way? I know the deeper I get into the app I am going to need nested recordsets for master detail type stuff.
Help!
Here is my connection string
ConnectionString = "Server=" & strDataSource & ";" & _
"DataBase=" & strSQLDB & ";" & _
"Integrated Security=SSPI;Connect Timeout=5"
cnSQL = New SqlConnection(ConnectionString)
Here is how I am getting data for forms
Dim cmSQL As SqlCommand
Dim rsCLT As SqlDataReader
cmSQL = New SqlCommand("Select * from tblclient where cltid = " & cltID, cnSQL)
rsCLT = cmSQL.ExecuteReader()
rsCLT.Read()
Here is how I am populating DexExpress xtraGRID
Dim DBCommandE As SqlDataAdapter
Dim DSPageDataE As New DataTable
DBCommandE = New SqlDataAdapter _
("select id, from tblenroll where cltid = " & cltID, cnSQL)
DBCommandE.Fill(DSPageDataE)