I am trying to copy all table data from server to my local database, like
INSERT INTO [.\SQLEXPRESS].[Mydatabase]..MYTable
SELECT *
FROM [www.MYSite.com].[Mydatabase]..MYTable
www.MYSite.com
having SQL LOGIN ID XYZ
AND PASSWORD 1234
but I get an error:
Could not find server 'www.MYSite.com' in sys.servers.
Verify that the correct server name was specified. If necessary,
execute the stored procedure sp_addlinkedserver to add the server to sys.servers.
I want to copy all the data from Mytable
of www.MYSite.com
to Mytable
of .\SQLExpress
.
How to resolve it? Please help.
Update :
I am using Microsoft Sync Framework 2.0 to sync all data from www.MYSite.com
to .\SQLExpress
and vice versa, but in a one condition I want to copy data from www.MYSite.com
to .\SQLExpress
without sync framework
Please Note I am passing those SQL Statement using C#..