Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Should script of a table show all index keys?
Message
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01547947
Message ID:
01547954
Views:
24
>>>>Hi,
>>>>
>>>>I see something strange (maybe just to me). I am looking at a table in SSMS. And in the Indexes branch I see 3 index tags.
>>>>But when I script the table (by Right-Mouse click -> Script Table As -> Create To -> New Query Window I don't see anywhere these 3 index tags. Is this how it should be? TIA.
>>>
>>>Have you verified options for scripting in Tools/Options/SQL Server Object Explorer/Scripting/Script Indexes?
>>
>>I didn't know about this option. Good thing you mention it as I often times use the script from one database to create a table in another database. I suppose I was missing index keys. What else should I set to True in this SQL Server Object Explorer?
>>Thank you!
>
>You can set most of the options to true - examine each one and decide if you need it.

I see this option SQL Server Object Explorer in SQL Server 2008 but not in SQL Server 2005. Where did they put it in SQL Server 2005?
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform