120 likes | 228 Vues
Explore the top secrets of SQL Server Management Studio 2008 with Louie Bao. Learn about startup command line parameters to easily switch databases, which is invaluable when the default database is unreachable. Enhance your productivity by using color coding for easy differentiation between development and production servers. Discover useful command techniques, including the unique GO command and essential keyboard shortcuts for efficient coding. Master advanced editing features like regex find and replace, and navigate template parameters with ease.
E N D
Start up Command line parameters
Start up Ability to change the database for the connection. Especially useful when the default database is inaccessible. Connection properties Use colours to differentiate between development and production servers.
Go GoGo GO [count] GO is not a Transact-SQL statement, it is a command recognized by … and SQL Server Management Studio Code editor.
Keyboard shortcuts • Word Selection: Ctrl + w • Line Selection: Home, Shift + End • Vertical Range Selection: Alt (Hold) + Click and Drag
Keyboard shortcuts Advanced…
Keyboard shortcuts Tools -> Options -> Environment -> Keyboard
Find and replace (regex) Find what: create table:b*{\#:i} Replace with: if object_id('tempdb..\1') is not null\n\tdrop table \1\n\n\0
Find and replace (regex) Find what: {[:a')]}={[@(':a]} Replace with: \1 = \2
Template Template Explorer: Ctrl + Alt + T Specify Values for Template Parameters: Ctrl + Shift + M
Scripting Tools -> Options -> SQL Server Object Explorer -> Scripting
Tab Text Tools -> Options -> Text Editor -> Editor Tab and Status Bar