Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
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
Author
Message
Posted Wednesday, April 14, 2010 11:15 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Wednesday, April 16, 2014 4:42 AM
Points: 193, Visits: 541
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


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Wednesday, April 09, 2014 12:58 AM
Points: 1,904, Visits: 2,771
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