返回创远网络首页 | 台州创远网络 | 列表 >> 网络编程 >> 浏览主题 版主:
互联资讯 | 站长在线 | SEO搜索 | 网站运营 | 网络编程 | 全部分类
Asp创建Access数据库文件
已阅:2779 / 回复:1(楼主)
    偶本来以为可以使用FSO来创建数据库文件,结果被老林给说了一顿!-_-

  FSO是流的操作,并不能用来创建任何形式的文件,只负责传输数据。如果不是他说我还真不知道有这样的事,我的程序都是从别人的程序语句加自己的思维而来,以前也没有看过说明! ^_^值了,又学到新东东了,不过如果他不说估计我也能找到这个组件,只是不能对FSO做深一步的认识!

   要使用ASP来创建access数据库文件,是需要ADOX.Catalog这个组件的。这也是WINDOWS系统自带的一个组件。

  代码:

  Set CDB=Server.CreateObject("ADOX.CataLog")

  Call CDB.Create("Provider = Microsoft.Jet.OLEDB.4.0;Data Source = "&Server.MapPath(DBPath)) 'DBPath指数据库的存储地址

  Set CDB=Nothing

  ADOX的介绍

  Microsoft? ActiveX? Data Objects Extensions for Data Definition Language and Security (ADOX) 是对 ADO 对象和编程模型的扩展。ADOX 包括用于模式创建和修改的对象,以及安全性。由于它是基于对象实现模式操作,所以用户可以编写对各种数据源都能有效运行的代码,而与它们原始语法中的差异无关。

  ADOX 是核心 ADO 对象的扩展库。它显露的其他对象可用于创建、修改和删除模式对象,如表格和过程。它还包括安全对象,可用于维护用户和组,以及授予和撤消对象的权限。

  要通过开发工具使用 ADOX,需要建立对 ADOX 类型库的引用。对 ADOX 库的说明为“Microsoft ADO Ext. for DDL and Security.”。ADOX 库文件名为“Msadox.dll”,程序 ID (ProgID) 为“ADOX”。有关建立库引用的详细信息,请参阅开发工具的文档。


作者:admin (2009-10-20 9:52:18)
回复:Asp创建Access数据库文件
第 1 楼
stone processing equipment polishing machines bridge saw Profile machine cutting machinery stylaobte cutting machine stone machine automatic bridge cutter stone processing machine shaped piece cutter stone machinery stone machinery  automatic edge cutter cutting machine working center edge cutting machine drilling machine bridge cutting machine portal edge cutter single jib disk stone cutter oil-sealed cutter single pillar stone cutter two-way stone cutter  marble cutting machine square stone cutter infrared cutting machine double blade cutter gantry block cutter marble processing machine marble processing machine wire cutting machine granite processing machine multi-blade cutting machine stone cutter marble cutter sawing machine diamond wheel profiling wheel  saw blade external grinding internal grinding plane grinding planing block cutting machine cutting basin machine grinding and polishing machine Auto Cutting Machine Auto Cutting Machinery Edge cutting machinery Quarrying machine Quarrying machinery stone manufacturing equipment cutting equipment Stone Processing Machinery Equipment Stone Processing Machine Equipment Stone for industrial equipment cutter machine Stone cutting machine Stone Cutting Machinery Granite cutting Granite cutting machinery Granite cutting machine Marble cutting Marble cutting machinery stone equipment supplies automation stone manufacturing equipment polishing tools stone polishing tools Granite polishing tools Marble polishing tools stone polishing equipment stone industrial machines granite polishing equipment granite polishing machines bridge saws bridge saw granite diamond tools diamond tool diamond saws bridge saw machine bridge saw machinery saws stone cutting stone cutting saw bridge saws equipment profile cutting machine profile grinding machine profile wrapping machine Stripe Paving Stone Ceramics machine diamond saw bit experimental machine ceramic tile cutting machine stone engraving machine computer numerial controlling cutter stone worksite cutter
作者:stonemachi (2010-6-17 17:07:34)
当前总数:1 每页5条 当前1/1页 [1 

目前不允许游客回复,请 登录 注册 发贴.