<p>What are some of the ways? What frameworks can you use?</p>

[{'answer_id': 53529, 'author': 'Mike Stone', 'author_id': 122, 'author_profile': 'https://Stackoverflow.com/users/122', 'pm_score': 2, 'selected': False, 'text': '<p>Well, I presume you mean unit testing your code that hits the database, in which case, there is <a href="http://www.ndbunit.org/" rel="nofollow noreferrer">NDbUnit</a>, which appears to be a DbUnit clone for .NET.  I\'ve never used it, but I have used DbUnit, and it is quite useful.</p>\n\n<p>Edit: I assumed you were using .NET because you mentioned MSSQL.  If however you are actually using Java, there is <a href="http://www.dbunit.org/" rel="nofollow noreferrer">DbUnit</a>.</p>\n'}, {'answer_id': 53710, 'author': 'Vaibhav', 'author_id': 380, 'author_profile': 'https://Stackoverflow.com/users/380', 'pm_score': 3, 'selected': True, 'text': '<p>Here\'s a project which does this: <a href="http://tsqlunit.sourceforge.net/" rel="nofollow noreferrer">http://tsqlunit.sourceforge.net/</a></p>\n\n<p>Also, Visual Studio Team System for DBA has built-in support for unit testing of Databases.</p>\n'}, {'answer_id': 619811, 'author': 'Ray', 'author_id': 4872, 'author_profile': 'https://Stackoverflow.com/users/4872', 'pm_score': 1, 'selected': False, 'text': '<p><a href="http://tst.codeplex.com/" rel="nofollow noreferrer">T.S.T. the T-SQL Test Tool</a></p>\n\n<blockquote>\n  <p>TST is a tool that simplifies the task\n  of writing and running test automation\n  for code written in T-SQL. At the\n  heart of the TST tool is the TST\n  database. This database contains a\n  series of stored procedures that are\n  exposed as a test API. Part of this\n  API is similar with those found in\n  Unit Testing libraries familiar to\n  programmers in C# or Java.</p>\n</blockquote>\n'}]
['https://Stackoverflow.com/questions/53527', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4872/']