I have two servers and need to dump data from one to another. I have tried to use
[Server].[DB].[dbo].[Tablename] But I get red squigglies under the [Server] name.
I am running SQL Server 2012.
Thanks for any help.
As @Shnugo mentioned, the only way to reference an object on a different SQL Server instance is to define that other SQL Server instance as a linked server on the instance where you’re running your query. Once you do that the red squiggly lines will disappear. Here is the MSDN article that explains how to add a linked server: https://msdn.microsoft.com/en-us/library/ff772782(v=sql.110).aspx
Also, since you are looking to transfer data from one server to the other you may want to consider using a third party tool like our xSQL Data Compare (http://www.xsql.com/products/sql_server_data_compare/) which is free for SQL Server Express. Even if your servers are not SQL Express you get 2 weeks to use the tool for free so you can get the job done.
PS I work for xSQL Software.
linked server