Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
无法弄清楚我在这里做错了什么,我正在尝试将数据从表复制到另一个数据库中的另一个。我的 Sql 是
SELECT * INTO [dbo].[dbname].table FROM thistable
应该很简单,但它不会工作。
它应该是
SELECT * INTO [dbname].[dbo].table FROM thistable
干杯!
您应该在两个数据库名称上使用完全限定名称,然后它将起作用。
SELECT * INTO <databasename>.<schema>.<table> FROM <databasename>.<schema>.<table>;