General information
Forum:
Microsoft SQL Server
>We have two different SQL servers. I need to write a SQL procedure to select a list from a table in server-1 and insert into a table in server-2. Can this be done from within a procedure?
Yes. You can use OPENQUERY, OPENROWSET, or set up the other server as a linked server and include it in the four-part name (Server.Database.Schema.Object).
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only