Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create tables based off structure and data from a linked server

Status
Not open for further replies.

ljwilson

Programmer
May 1, 2008
65
US
I am trying to create tables and insert data based on a linked server. The linked server may not always be available so we need to have a local copy of the data. Since I am not in control of the linked server, I won't know when table structure changes. Is there a way to create a SP that will select from the linked server tables and then create the structure for the local database tables and then insert all the rows?
 
What is the desired behavior if you have data in your local table and the structure on the linked server changes? Do you want to modify the local table to match, or are you ok with dropping the table and rebuilding it?


-George

"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top