Monthly Archives: February 2009

Copy Data from One SQL Instance to Another

When using SQL Server Management Studio you might want to copy data from one DB to another (using just a SELECT and INSERT statement) It’s so easy you won’t believe it sp_addlinkedserver @server='192.168.123.456', @provider='SQLNCLI',    @srvproduct='',@provstr='User Id=sa; Password=are-you-crazy-to-use-sa' insert into [192.168.123.456].MYDB.dbo.tblRecords select * from MYDB.dbo.tblRecords and when you are done sp_dropserver [192.168.123.456] References: sp_addlinkedserver on MSDN

Read More