Click here to Skip to main content
15,895,827 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i am making a table in local database of sql 2005. i want to update my server database to add this table to it what i do?
Posted

try this

SQL
SELECT *
INTO NewTable
FROM TheFirstDB.Schemaname.OldTable



go through the liks in solution 1 of your Question
 
Share this answer
 
Hi,

You will use Linked Server Concept or SSIS packages.
I will give you the link for Creating Linked Server.
How to create Link Server with MS SQL 2005/2008[^]
SQL Server - Linked Servers[^]

Once you Create the Linked Server, then use Query as follows.
SQL
SELECT * INTO <linked_server_name>.<database_name>.<schema_name>.<table_name> FROM <local_table_name></local_table_name></table_name></schema_name></database_name></linked_server_name>


-- For SSIS Packages Pls Check in Googel :-) :-) :-)
Regards,
GVPrabu
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900