写vb.net程序出现的问题,请指教,谢谢!
写vb.net程序出现的问题,请指教,谢谢!
出现以下问题求助啊
Dim ds As DataSet
Dim Da As SqlDataAdapter
Dim Dt As DataTable
Dim str As String '查询条件字符串
Dim selectstr As String '选择输出项字符串
。。。。。。。。。。。。。
。。。。。。。。。。。。。
Da = New SqlDataAdapter("Select Selectstr WebCstomer_Info Where sel= Like % sc% ", conn)
ds = New DataSet()
Da.Fill(ds, "WebCstomer_Info")
DataGrid1.DataSource = ds.Tables(0).DefaultView
DataGrid1.Refresh()
DataGrid1.CurrentRowIndex = 0
编译通过,运行查询时出现错误:
处理的“System.Data.SqlClient.SqlException”类型的异常出现在 system.data.dll 中
其他信息:系统错误
为什么会这样请指教!