我有一個MS ACCESS 2003數據庫,其中有一個表「TABLEA」。使用OLEDB連接在MS ACCESS 2003中分組對象錯誤
然後我使用OLEDB連接並創建一個表,然後編程填充數據爲:
string create_table_script = @" CREATE TABLE [" + Path.GetFileNameWithoutExtension(filename) + @"](
[AutoID] COUNTER PRIMARY KEY ,
[CAS] text(255) ,
[Listed French Ingredient No] text(255) ,
[Name] text(255) ,
[GC] text(20) ,
[Grp_Code] text(10) ,
[Galsyn] Memo ,
[Notes LCN] text(255) ,
[Notes LFIN] text(255) ,
[%w/w] text(255))";
string connectionString = @"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" + fullpath + ";" + " User Id=admin; Password=";
using (OleDbConnection connection = new OleDbConnection(connectionString))
{
OleDbCommand SelectCommand = new OleDbCommand(create_table_script, connection);
connection.Open();
try
{
SelectCommand.ExecuteNonQuery();
}
catch (OleDbException ex)
{
Console.WriteLine(ex.Message);
}
finally
{
connection.Close();
}
}
填寫此表後,
我得到這個消息只有一次,每當我打開這一訪問datatbase
「31613您已選擇」表格和相關視圖「作爲數據庫中對象的分組方式,Access需要更新對象依賴關係的信息才能創建組,這對於大型數據庫將需要一些時間。 接着說?」
我不知道我錯在哪裏。我爲此目鏡了它,但沒有得到任何好處。 我覺得在創建表格時有一些問題
任何幫助表示讚賞。