Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

Script tables but why not include their non-clustered indexes ? Expand / Collapse
Posted Wednesday, April 14, 2010 11:15 PM


Group: General Forum Members
Last Login: Yesterday @ 8:57 PM
Points: 197, Visits: 570
Hello, I am using SQL 2005, I right-clicked a database's tables and saved its table scripts as a text file or sent it to a new Query window.
However, why the output didn't have its non-clustered indexes or unique constraints ?

Consequently, I couldn't create some foregin keys.

Please tell me how can I script a database's tables including their non-clustered indexes and/or unique constraints.

Post #903750
Posted Wednesday, April 14, 2010 11:29 PM



Group: General Forum Members
Last Login: Thursday, March 24, 2016 3:25 AM
Points: 1,882, Visits: 3,017
duplicate post.

Msg 8134, Level 16, State 1, Line 1
Divide by zero error encountered.
Post #903756
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse