易截截图软件、单文件、免安装、纯绿色、仅160KB

返回access的创建语句 - Web 开发 / ASP

我在access中创建一个表..我怎么获取他的创建语句..
我主要是想获取他的创建语句用于CMS的安装 或者在sqlserver中安装用用..

VB code:

CreateDatabase Method Example

This example uses CreateDatabase to create a new, encrypted Database object.

Sub CreateDatabaseX()

Dim wrkDefault As Workspace
Dim dbsNew As DATABASE
Dim prpLoop As Property

' Get default Workspace.
Set wrkDefault = DBEngine.Workspaces(0)

' Make sure there isn't already a file with the name of
' the new database.
If Dir("NewDB.mdb") <> "" Then Kill "NewDB.mdb"

' Create a new encrypted database with the specified
' collating order.
Set dbsNew = wrkDefault.CreateDatabase("NewDB.mdb", _
dbLangGeneral, dbEncrypt)

With dbsNew
Debug.Print "Properties of " & .Name
' Enumerate the Properties collection of the new
' Database object.
For Each prpLoop In .Properties
If prpLoop <> "" Then Debug.Print " " & _
prpLoop.Name & " = " & prpLoop
Next prpLoop
End With

dbsNew.Close

End Sub



CreateTableDef Method Example

This example creates a new TableDef object in the Northwind database.

Sub CreateTableDefX()

Dim dbsNorthwind As Database
Dim


相关问答:

Dbgrid连接access拖动滚动条死机?

Dbgrid连接access 显示数据时拖动滚动条死机?怎么解决啊?
机器太差了吧?

是不是你数据量太大了啊
你数据少一些看看还死机吗?

数据很少啊 就一页。

我在BCB6下做过不少 DBGRID+ACCESS ,从来没有遇到 ......

如何将access里面的附件保存到磁盘上呢

请大侠指点,跪谢了,最好有代码
要用到ADOX对象,查下帮助文档,
http://hyadliujing.blog.163.com/blog/static/4484507420091020969233/?mode=edit

没有找到啊 看了你的博客了,我是想将access里面的附件保存 ......

tomcat连接Access数据库问题。 - Java / Web 开发

各位高手好,麻烦帮我看下这个数据库连接问题:
做了一个BBS但是数据库就是连接不上。错误代码如下
HTTP Status 500 - 
------------------------------------------------------------------------------- ......

VC中 odbc访问access内存增长

vc中用odbc的方法访问access数据库,用到了cdatabase类和crecordset类。数据源在窗口初始化的时候被打开g_datasource.Open("data",FALSE,FALSE); 点击一个按钮启动一个定时器,在定时器内完成以下操作,定 ......

linux不能访问access - Java / Java EE

rt,我试了网上直连Acces数据库的方法,windows下没有问题,但是在linux下不行,谁能给点提示?谢谢
你怎么连的?

Acces数据库..
你怎么练的呢?

Java code:

static String DBDRIVER = "sun.jd ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号