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.

217<br />

Chapter 7: Maintaining a Code Library<br />

comment headers to the code, you can define sets of key words to associate with various<br />

snippets, which can then be used in searches against the code snippets.<br />

Figure 7-4 shows a basic wiki tree that I created in order to demonstrate some of<br />

functionality available for managing code snippets. It consists of basic wiki words that<br />

represent either classifications, such as "Statistics and Indexes," or specific definitions<br />

for code snippets, such as "Tally Table." For help setting up a basic wiki, please see the<br />

previous link, or the equivalent for your wiki of choice.<br />

Figure 7-4: Basic wiki tree structure.<br />

Notice how I've used names that work well as identifying keywords, and that can be<br />

quickly searched on within the wiki. Notice, also, that I've created separate "branches" for<br />

stored procedure scripts, and statistics and indexes scripts.<br />

Searching in a wiki is far more powerful than with EditPlus, or even SSMS. For example,<br />

consider a search on the phrase "error handling," as shown in Figure 7-5.<br />

Figure 7-5: Search results in WikidPad.

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

Saved successfully!

Ooh no, something went wrong!