G
Guest
Is it possible to run 2 commands within a try-catch statment with a datareader
i.
Tr
Cn.Open(
Dim reader1 As SqlDataReade
Dim reader2 As SqlDataReade
reader1 = cmd1.ExecuteReader(
reader2 = cmd2.ExecuteReader(
reader1.Read(
reader2.Read(
Dim var1 As String = (reader1.GetSqlString(0).ToString
Dim var2 As String = (reader2.GetSqlString(0).ToString)
Catch ex As Exceptio
MsgBox(ex.Message
Finall
Cn.Close(
End Try
i.
Tr
Cn.Open(
Dim reader1 As SqlDataReade
Dim reader2 As SqlDataReade
reader1 = cmd1.ExecuteReader(
reader2 = cmd2.ExecuteReader(
reader1.Read(
reader2.Read(
Dim var1 As String = (reader1.GetSqlString(0).ToString
Dim var2 As String = (reader2.GetSqlString(0).ToString)
Catch ex As Exceptio
MsgBox(ex.Message
Finall
Cn.Close(
End Try