G
Guest
Running VS 2003 on 1.1 framework.
Every time my code trys to execute the line ' da.Fill(dt)', I get following
exception:
~~~~~~~~~~~~~~~~~~
An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred
in system.data.dll
Additional information: System error.
~~~~~~~~~~~~~~~~~~
Here is my code:
~~~~~~~~~~~~~~~~~~
Dim dt As New System.Data.DataTable
Dim da As SqlClient.SqlDataAdapter
Dim cmd As New SqlClient.SqlCommand
cmd.CommandText = strQuery
cmd.Connection = _docConn
_docConn.Open()
da = New SqlClient.SqlDataAdapter(cmd)
da.Fill(dt)
_docConn.Close()
~~~~~~~~~~~~~~~~~~
Any ideas?
I appreciate anyones help on this.
Thanks Gerhard
Every time my code trys to execute the line ' da.Fill(dt)', I get following
exception:
~~~~~~~~~~~~~~~~~~
An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred
in system.data.dll
Additional information: System error.
~~~~~~~~~~~~~~~~~~
Here is my code:
~~~~~~~~~~~~~~~~~~
Dim dt As New System.Data.DataTable
Dim da As SqlClient.SqlDataAdapter
Dim cmd As New SqlClient.SqlCommand
cmd.CommandText = strQuery
cmd.Connection = _docConn
_docConn.Open()
da = New SqlClient.SqlDataAdapter(cmd)
da.Fill(dt)
_docConn.Close()
~~~~~~~~~~~~~~~~~~
Any ideas?
I appreciate anyones help on this.
Thanks Gerhard