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
自己看!

解决方案 »

  1.   

    如果要创建一个新的数据库,你可以用Access本身来完成!
    根据我所知道的好象ADO.NET没有创建数据库的功能!
    (也许是我没听说过!)
      

  2.   

    我以前发过类似提问帖
    但因为描述不详细
    很多朋友只是大致说了一下方法
    召唤详细的解答
    //bow
      

  3.   

    try this:
    http://www.blueidea.com/bbs/newsdetail.asp?id=622937
      

  4.   

    创建.mdb,然后按照要求建立两张表。
      

  5.   

    这个问题我也是很久以前问过,好像只有SQL才可以。ACCESS已经没有了。除非你用原先的ADO,需要用tlbimp转换。
      

  6.   

    using System;
    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; }
    }
    }