I have two servers and I need to transfer all the details of a particular user from one server to another server.
I selected row from one server and now I have to in
You need to define linked server in SQl server. For example LN that you can insert to the linked database. LN.dbo.table . In your store procedure you can insert into linked table
USE full qualified name like
INSERT INTO SERVER1.DATABASE1.dbo.TABLE1 values(SELECT * FROM SERVER2.DATABASE2.dbo.TABLE2)
make sure that no. of columns and dataType should be same of those two tables and order of column value should be same .