R
Roel Van den Brande
Hello
I try to fill a dataset. This is my code
string myConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
source= C:\\Inetpub\\wwwroot\\Notenhof\\data\\notenhof.mdb;";
OleDbConnection myConnection = new OleDbConnection(myConnectionString);
myConnection.Open();
DataSet ds = new DataSet();
OleDbDataAdapter dtad = new OleDbDataAdapter("SELECT * FROM
user",myConnection);
dtad.Fill(ds);
When I execute: dtad.Fill(ds); I get the following error:
System.Data.OleDb.OleDbException: Syntax error in FROM clause.
This is very strange because user is a valid table...
Thx for helping me
Roel
I try to fill a dataset. This is my code
string myConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
source= C:\\Inetpub\\wwwroot\\Notenhof\\data\\notenhof.mdb;";
OleDbConnection myConnection = new OleDbConnection(myConnectionString);
myConnection.Open();
DataSet ds = new DataSet();
OleDbDataAdapter dtad = new OleDbDataAdapter("SELECT * FROM
user",myConnection);
dtad.Fill(ds);
When I execute: dtad.Fill(ds); I get the following error:
System.Data.OleDb.OleDbException: Syntax error in FROM clause.
This is very strange because user is a valid table...
Thx for helping me
Roel