30.06.2013 Views

SQL Server Team-based Development - Red Gate Software

SQL Server Team-based Development - Red Gate Software

SQL Server Team-based Development - Red Gate Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

293<br />

Chapter 9: Searching DDL and Build Scripts<br />

So, all you need to do now is to collect up the other scripts you find useful, and configure<br />

up your SSMS query shortcuts to give you extra speed for your database development<br />

work, especially if you are refactoring someone else's database. The reason I like doing<br />

this sort of thing is because I like to hone my development environment to my own<br />

particular tastes. Your tastes will be different, but I hope you agree with the principle that<br />

it is good to take some time to make sure you can develop things quickly and without<br />

frustrating delays. There is nothing more frustrating than wrestling with an IDE designed<br />

by people who don't seem to understand how database developers do their work.<br />

Summary<br />

I use all the methods I've described for perusing the structures in databases. If I want<br />

quick information in the course of writing a database routine, I use <strong>SQL</strong> Search.<br />

When I'm doing some intensive refactoring, I'll use the full Build script, but always in a<br />

Programmer's Text Editor rather than SSMS (I once hit Execute instead of Open file, and<br />

deleted a database). I use Information_Schema views wherever possible, as they are<br />

reasonably future proof and open standard. I use object catalog views when I can't get<br />

what I want from Information_Schema views, and I use system tables when I have to<br />

use older versions of <strong>SQL</strong> <strong>Server</strong>.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!