如何摆脱“文件附近的无效语法”?需要“.”、ID 或 QUOTED_ID”?
我正在尝试更改第三方数据库中的架构。它很旧了。除了两条线之外,所有的东西都移过来了。
ALTER SCHEMA dbo TRANSFER db_owner.File
ALTER SCHEMA dbo TRANSFER db_owner.User
现在我看到 File 和 User 是 SQL 关键字。这就是我收到该错误的原因。有没有办法告诉 SQL 忽略它们作为关键字?那么可以运行吗?
I'm trying to change over schema in a third party db. It's old. And everything has moved over except two lines.
ALTER SCHEMA dbo TRANSFER db_owner.File
ALTER SCHEMA dbo TRANSFER db_owner.User
Now I see that File and User are SQL keywords. And that's why I'm getting that error. Is there a way to tell SQL to ignore them as keywords? So it can run?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

将关键字括在方括号中。
Enclose the keywords in square brackets.