What is the best way to test a stored procedure?

前端 未结 8 2329
借酒劲吻你
借酒劲吻你 2021-02-12 02:40

Like many companies that require all access be through stored procedures, we seem to have a lot of business logic locked away in sprocs. These things are just plain hard to tes

8条回答
  •  别那么骄傲
    2021-02-12 03:13

    I noticed your post was tagged as SqlServer. If that's the case, then you should look at the Team Edition for Database Professionals that is part of Visual Studio. Here's some articles:

    • A tutorial I wrote on TDDing Stored Procs with DBPro
    • an MSDN magazine article which goes more in-depth
    • DbFit, a framework which integrates with FIT and Fitnesse to do functional testing of databases

    The last one is actually cross-DB platform, while DBPro is solely SQL Server for now.

提交回复
热议问题