dbTalk Databases Forums  

Problems in exporting constraints and keys

microsoft.public.sqlserver.clients microsoft.public.sqlserver.clients


Discuss Problems in exporting constraints and keys in the microsoft.public.sqlserver.clients forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Chakravarthy
 
Posts: n/a

Default Problems in exporting constraints and keys - 01-07-2007 , 09:46 AM






When i try to replicate a production database as a new development database
by creating an empty DB called, say 'AppDev' in Enterprise Manager, and then
export the data using the Tasks->Export Data , the constraints, Primary Keys
and Foreign Keys are not exported , even though i have selected these
options . The data however is exported.

Is there a catch, or a better way to do this ?

Thanks,
Raj.



Reply With Quote
  #2  
Old   
Andrew J. Kelly
 
Posts: n/a

Default Re: Problems in exporting constraints and keys - 01-07-2007 , 11:18 AM






Why don't you script the database and all its objects and then run that
instead of the wizard? Right click on the db and choose All Tasks -
Generate SQL Scripts for the script wizard.

--
Andrew J. Kelly SQL MVP

"Chakravarthy" <r_chakravarthy (AT) hotmail (DOT) com> wrote

Quote:
When i try to replicate a production database as a new development
database by creating an empty DB called, say 'AppDev' in Enterprise
Manager, and then export the data using the Tasks->Export Data , the
constraints, Primary Keys and Foreign Keys are not exported , even though
i have selected these options . The data however is exported.

Is there a catch, or a better way to do this ?

Thanks,
Raj.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.