I am trying to copy the data of testdabse.invoice
table to basecampdev.invoice
table.
testdabse
is a local database while basecampdev
is in the server.
My query for copying data to another table doesn't work, it says
Invalid object name 'basecampdev.dbo.invoice'.
I've been reading this documentation but find it hard to follow and understand.
These are the information given from the server
Server type: Database Engine
Server name: server.database.windows.net (this is not the real name)
Authentication: SQL Server Authentication
Login: myusername
Password: mypassword
How can I connect to the server so that I would be able to run this query
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]
Screen shot