Es wird immer ein Fehler ausgegeben, dass ich bei CREATE TABLE einen Fehler habe. Weiß jemand warum?
OleDbDataAdapter dadapter = null;
DataSet dset = null;
OleDbConnection connection = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=.\\data\\db.mdb;");
OleDbCommand command = new OleDbCommand("CREATE TABLE `pc_uebersicht` ("+
"`ID` int(11) NOT NULL,"+
"`Nr` int(11) NOT NULL,"+
"`PC_NB` varchar(50) NOT NULL,"+
"`Benutzer` varchar(50) NOT NULL,"+
"`Telefon` varchar(50) NOT NULL,"+
"`Raum` varchar(50) NOT NULL,"+
"`Modell` varchar(50) NOT NULL,"+
"`Monitor` varchar(50) NOT NULL,"+
"`CPU` varchar(50) NOT NULL,"+
"`RAM` varchar(50) NOT NULL,"+
"`Bemerkung` text NOT NULL,"+
"`Status` varchar(50) NOT NULL,"+
"PRIMARY KEY (`ID`))", connection);
dadapter = new OleDbDataAdapter(command);
OleDbCommandBuilder cbuilder = new OleDbCommandBuilder(dadapter);
dset = new DataSet();
dadapter.Fill(dset, "pc\_uebersicht");
connection.Close();