sqlDataAdapter Error
- From: "joseph micheli" <josephmicheli@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 10 Aug 2005 17:36:49 -0700
I have the following code attached to the click event of a button. It fails
on the line "da.Fill (ds, "Results") The error is below the code. Any
suggestions would be greatly appreciated. Thanks.
Dim cmd As SqlCommand = SqlConnection1.CreateCommand
cmd.CommandType = CommandType.Text
cmd.CommandText = txtQuery.Text
Dim da As SqlDataAdapter = New SqlDataAdapter
da.SelectCommand = cmd
Dim ds As DataSet = New DataSet
da.Fill(ds, "Results")
dgResults.DataSource = ds
dgResults.DataMember = "Results"
An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred
in system.data.dll
Additional information: System error.
--
Joe Micheli CPA, CMA, CFM, CPIM
.
- Follow-Ups:
- RE: sqlDataAdapter Error
- From: FPM
- RE: sqlDataAdapter Error
- Prev by Date: RE: IIS install
- Next by Date: Text missing in Msg and list Boxes
- Previous by thread: RE: IIS install
- Next by thread: RE: sqlDataAdapter Error
- Index(es):