如何在链接的数据源上执行数据定义语句 [英] How to execute a data definition statement on a linked data source

查看:122
本文介绍了如何在链接的数据源上执行数据定义语句的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好。如何在链接数据源(stImportRaw)上执行以下命令...


    sqlStr =" ALTER TABLE" + stImportRaw +" ALTER COLUMN AutoID COUNTER("& NextID&",1)" b
   设置db = CurrentDb

    db.Execute(sqlStr)


Thanx。


 


Darrell H Burns

解决方案

虽然我从未这样做过,但我的猜测是将set db语句设置为包含表格而不是CurrentDb的数据库。

Hello. How would I execute the following command on a linked data source (stImportRaw)...

    sqlStr = "ALTER TABLE " + stImportRaw + " ALTER COLUMN AutoID COUNTER(" & NextID & ",1)"
    Set db = CurrentDb
    db.Execute (sqlStr)

Thanx.

 


Darrell H Burns

解决方案

Although I've never done that, my guess would be to set your set db statement to the database that has the table in it rather than the CurrentDb.


这篇关于如何在链接的数据源上执行数据定义语句的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆