As part of an ongoing release of all my training material, I am releasing "Database and SQL Testing with SQLServer" under a Creative Commons Attribution Share-Alike license. That is, you are free to share, copy, and adapt any part of this training course for your own purposes. All materials, including examples are available for download from here: http://theagiledirector.com/content/sqlserver-training-courses-released-under-creative-commons
This workshop material is designed for testers responsible for the validation and quality control of database driven applications and who want to improve their testing capabilities, and take advantage of the advanced features within MS SQLServer. This course focuses on SQLServer, but most of the techniques will be applicable to any SQL 2003 compliant database. This material looks at relational theory and good database design, and how these underlying principles relate to writing database specific test cases. It also examines SQL, including some of the more advanced features used to test the performance of complex queries. Finally it then looks at how the SQL Server profiler and execution plan operates; how it parses SQL and how to debug SQL statements and stored procedures.