Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 

SQLStudies

My name is Kenneth Fisher and I am Senior DBA for a large (multi-national) insurance company. I have been working with databases for over 20 years starting with Clarion and Foxpro. I’ve been working with SQL Server for 12 years but have only really started “studying” the subject for the last 3. I don’t have any real "specialities" but I enjoy trouble shooting and teaching. Thus far I’ve earned by MCITP Database Administrator 2008, MCTS Database Administrator 2005, and MCTS Database Developer 2008. I’m currently studying for my MCITP Database Developer 2008 and should start in on the 2012 exams next year. My blog is at www.sqlstudies.com.

When I run “Script as” it isn’t (or is) … How do I fix it?

When I run “Script (say table) as” it isn’t (or is) (say generating scripts for indexes). How do I fix it? This is a common enough question with a fairly simple solution. In the Options screen there are dozens of options for the scripting function of Object Explorer. These options include scripting primary keys, indexes, full-text indexes, file groups, including collation, permissions, even a choice to script for Standalone SQL Server or SQL Azure.

Honestly if you have never spent a few minutes (even an hour or more) exploring the options available for SSMS you should. It will be well worth your time. To topic however, here is the Options screen with the Scripting options selected.

SSMSOptions

Spend some time reviewing the list and make sure that the settings you are interested in are turned on and the ones you don’t want are turned off. For example “Script indexes” under “Tables and Views” was set to False when I did my install. I absolutely wanted indexes scripted so I set it to true. I’m not big on all of the “USE” statements that normally get scripted so I turned the “Script USE ” option to off.


Filed under: Microsoft SQL Server, SQLServerPedia Syndication, SSMS Tagged: microsoft sql server, SSMS

Comments

Leave a comment on the original post [sqlstudies.com, opens in a new window]

Loading comments...