问题
I am using SQL Server 2012 Management Studio. I tried to connect to a remote database. I was able to connect successfully but i was restricted to access only for four views. I tried the following steps to join the table with my local table.
I tried to use linkedserver but I was un-able to add the remote server due to permission restriction so i was un-able to modify the
SP_LinkedServer
.I tried to copy the table but i was un-able to copy it to my local database.
I am planning to compare my local table with my remote table. I am new to SQL Server, curious to learn. Please correct me if have a wrong understanding.
I appreciate your kind help
回答1:
You should try using the SQL Server Import and Export Wizard:
http://msdn.microsoft.com/en-us/library/ms140052.aspx
If possible you could export the data from one server and import it to the other using the wizard.
If this is not possible then you could export to a file from one server, and then import from a file onto the other.
来源:https://stackoverflow.com/questions/17701273/join-remote-database-table-with-my-local-database-table-in-sql-server-2012