When I copy table (export data) from one SQL Server database to another, How I can import all the properties of table including primary key, indexes, dependencies etc.
Rather than create a new topic, I'll reopen this one as the problem is the same.
Environment:
SQL Server 2000 SP3a
Windows Server 2003 Enterprise
When exporting from one SQL Server to another using the Import/Export functionality in Enterprise Manager, the data transfers; however, the data properties, such as the primary keys and int/identity fields do not.
I've attempted to copy the table and copy the SQL objects with all properties selected--to no avail.
Suggestions?
Thanks!
-David
---
David R. Longnecker
Web Developer
CCNA, MCSA, Network+, A+
Management Information Services
Wichita Public Schools, USD 259
Follow the steps to copy data with constraints, triggers etc as mentioned below and update us on your findings.
1) Select "Copy objects and data between sql server databases" in the export wizard (DTS).
2) In the next step uncheck "copy all objects" and select only the tables you intend to copy.
3) Also, Uncheck default options and click options.
4) Uncheck "Copy database users and database roles" if the users and roles already exist in the target db. 5) uncheck "copy object level permissions".
3) click ok and then run the batch.
Thank you for the tips; however, that results in an ever-so-clear Microsoft error:
"Failed to copy objects from Microsoft SQL Server to Microsoft SQL Server."
I, unfortunately, do not have access to the event viewer at this time (sa doesn't give everything (^_^)), but will look through there and post as soon as I can.
-David
---
David R. Longnecker
Web Developer
CCNA, MCSA, Network+, A+
Management Information Services
Wichita Public Schools, USD 259
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.