我试图将testdabse.invoice
表的数据复制到basecampdev.invoice
表中。
testdabse
是本地数据库,而basecampdev
在服务器上。
我的复制数据到另一个表的查询不起作用,它显示:
Invalid object name 'basecampdev.dbo.invoice'.
我一直在阅读这份文档,但发现很难跟进和理解。
这些是服务器提供的信息。
Server type: Database Engine
Server name: server.database.windows.net (this is not the real name)
Authentication: SQL Server Authentication
Login: myusername
Password: mypassword
我该如何连接到服务器才能运行这个查询?
INSERT INTO [basecampdev].[dbo].[invoice]
([InvoiceNumber]
,[TotalAmount]
,[IsActive]
,[CreatedBy]
,[UpdatedBy]
,[CreatedDate]
,[UpdatedDate]
,[Remarks])
SELECT [InvoiceNumber]
,[TotalAmount]
,[IsActive]
,[CreatedBy]
,[UpdatedBy]
,[CreatedDate]
,[UpdatedDate]
,[Remarks] FROM [testdabse].[dbo].[invoice]
截屏