The problem here is that the convert function below gives me an error in the ODBC data string. The SQL string works fine!!!
Here is the error message I get at execution on console:
error: ERROR [42000] [Microsoft][ODBC Text Driver] Undefined function 'convert' in expression...
...catalog=rathmisc;data source=server;user id=sysadm;password=sysadm")
Dim MyDataAdaptor As New System.Data.sqlclient.SqlDataAdapter("select * from tbl_data_laser_1", connect)
Try
connect.Open()
Dim DataSet As New DataTable...
...catalog=rathmisc;data source=server;user id=sysadm;password=sysadm")
Dim MyDataAdaptor As New System.Data.sqlclient.SqlDataAdapter("select * from tbl_data_laser_1", connect)
Try
connect.Open()
Dim DataSet As New DataTable...
...Dim MyDataTable As New DataSet
Dim ds As New DataSet
MyDataAdaptor = New SqlDataAdapter("select * from tbl_data_laser_1", oSQLConn)
MyDataAdaptor.Fill(ds)
An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in system.data.dll
Additional...
...MyDataAdaptor As System.Data.sqlclient.SqlDataAdapter
Dim MyDataTable As New DataTable
MyDataAdaptor = New SqlDataAdapter("select * from tbl_data_laser_1", oSQLConn)
MyDataAdaptor.Fill(MyDataTable)
DataGrid1.DataSource = MyDataTable
Code halts at the second to...
In this connection string :
oSQLConn.ConnectionString="Data Source=Aron1;Initial Catalog=pubs;User Id=sa;Password=asdasd;"
what is the data source supposed to point at?
this connection string was copied from an example. and I dont know what "aron1" is
thanks
jeff
I need a good book on vb.net as it relates to windows applications and sql database. I dont need any web stuff. Any suggestions.
Oh lest I forget .... I dont know squat about vb.net. I get along fine in VBA. But this .net stuff is way different
Thanks
Jeff
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.