using System;
using ADOX;

namespace GameControl
{
    public partial class ConsoleApplication
    {
            ADOX.CatalogClass m_Adox = new CatalogClass();    // 初始化CatalogClass对象

         m_Adox.Create("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" + Application.StartupPath + "\test.mdb");

            m_Adox = null; GC.Collect();                      // 强制回收资源并解除LDB锁定

         Console.WriteLine("数据库创建成功");
    }
}

相关文章:

  • 2021-12-08
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
  • 2021-09-26
  • 2022-12-23
猜你喜欢
  • 2021-09-22
  • 2022-12-23
  • 2021-11-29
  • 2022-01-17
  • 2021-09-07
  • 2022-12-23
  • 2022-02-13
相关资源
相似解决方案