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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Default values

Status
Not open for further replies.

mukund

Programmer
Mar 6, 2001
64
GB
Hi,
When I am generating a script for table schemas and using that script to transfer tables from one database to another, the default values set for the columns in these tables are not tranferred to the target database.
Anybody has a solution for this. I had checked the Table Scripting Option
"Script PRIMARY keys, FOREIGN keys, Defaults and Check Constraints"

Any suggestions/help is welcome.

Mukund.
 
I have no problems with this on SQL 7.0 and scrpting via Enterprise Manager. Are you using this method??

Run sp_help on one of your tables in question and check out the constraint_type results. If defaults are listed here then they should be also be in your script.

Rick.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top