http://www.csdn.net/develop/Read_Article.asp?Id=11650
http://www.csdn.net/develop/Read_Article.asp?Id=11651
http://www.csdn.net/develop/Read_Article.asp?Id=11652
自己看!
http://www.csdn.net/develop/Read_Article.asp?Id=11651
http://www.csdn.net/develop/Read_Article.asp?Id=11652
自己看!
解决方案 »
- 新人求指教!求意见!
- 请教“.Net互操作”“托管调用非托管”相关问题
- 找不到标量变量@caid
- text属性为什么不能及时刷新?
- 关于DataGridr 的一个小问题,恳请各位英雄豪杰拔刀相助!
- 高手们,请问一下,这样打印出来的东西非常模糊,无法使用,该怎么办呢?
- 用什么软件能将一个VB程序用图块来表示。我的VB程序直接编码,开始没有设计,代码越长越复杂,很难看清结构,现在想逆向成设计图,不知道
- 急!为什么没法删除web程序阿?
- 排序。
- 在C#中如何创建对象?
- 在DataGrid中添加了模板列checkbox后,如何通过勾选checkbox然后点击删除按钮来删除记录
- 更新索引的耗时问题--大侠帮忙啊!
根据我所知道的好象ADO.NET没有创建数据库的功能!
(也许是我没听说过!)
但因为描述不详细
很多朋友只是大致说了一下方法
召唤详细的解答
//bow
http://www.blueidea.com/bbs/newsdetail.asp?id=622937
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;namespace WindowsApplication3
{
/// <summary>
/// Form1 的摘要说明。
/// </summary>
public class Form1 : System.Windows.Forms.Form
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null; public Form1()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent(); //
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
} /// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
} #region Windows Form Designer generated code
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.Size = new System.Drawing.Size(300,300);
this.Text = "Form1";
}
#endregion /// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main(string[] args)
{
Catalog cat = new Catalog();
cat.Create(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\NewMDB.mdb;Jet OLEDB:Engine Type=5");
Table objTable = new Table();
objTable.Name = "Test_Table";
objTable.Columns.Append("Test_Field", DataTypeEnum.adWChar,10);
cat.Tables.Append(objTable);
objTable = null;
cat = null; }
}
}