I have been working on a small project for about two weeks. We want to consolidate a few tables from several remote server databases in order to run queries and reports on separate from the live databases....kind of like a DIY mini-data warehouse.
We have three remote servers and I am compiling the data onto one local server running three separate SQL Express instances.
SQL Express databases are all set up, and I have successfully copied the tables required using several different methods including:
SSMS Import/Export Wizard
as well as scripting using Linked Servers from new database:
INSERT INTO dbo.table
SELECT *
FROM remoteserver.remotedatabase.dbo.remotetable
Both of these successfully copied tables and data BUT not keys, indexes and other constraints.
I am recently working in databases, so I am at a loss and Google yielded the above...