什么红酒好:如何在c# winform中动态向指定access中添加表,我用的是vs2003

来源:百度文库 编辑:神马品牌网 时间:2024/05/09 03:43:34
如何在c# winform中动态向指定access中添加表,我用的是vs2003。

例如:一个窗口有一个文本框,一个buttom,我在文本框中写一段添加表的sql语句(如:create table newtable ( collom1 [int] NULL))

我用ole连接,似乎不行,高手帮忙一下,最好有示例源代码。

this.SqlCommand1.Text = "Create Table NewTable(a [int] null)";
this.SqlCommand1.CommandType = CommandType.Text;