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: Tuesday, January 12, 2016 1:50 AM
Points: 195, Visits: 560
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: Wednesday, February 10, 2016 12:39 AM
Points: 1,882, Visits: 2,996
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