SQL Server - testing the database
What tools are people using for testing SQL Server databases?
By this I mean all parts of the database:
- column type
- stored procedures
Most likely, there is not one tool to do it all.
How do you mean "Test the database"?
If you are testing foreign keys, a simply script to insert invalid data is all you should need.
Testing a database could imply a great number of issues. Does it have all the tables? Are the tables correct? Are the indexes in place? Did the latest updates get applied? Has the data been migrated? Is the even valid? Are the foreign keys correct?
There is a lot to test in a database so you are unlikely to find a simple way to test it. I find that a combination of test stored procedures and some Nunit unit tests do most of the vetting of my databases.