Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6799023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:47:57+00:00 2026-05-26T18:47:57+00:00

I am develeping a solution to achieved database test driven develepment for testing stored

  • 0

I am develeping a solution to achieved database test driven develepment for testing stored procedure changes. My thoughts so far is to execute the stored proc and store the expected data and schema results set in a raw format. Make the sp change then execute the stored proc again and assert that the schema and data are equal.

At 1st I stored the data in a sql server database like:-

testdata.storedproc

  • ID – int
  • ResultsSet – int
  • Data – XML
  • Date – DateTime

testschema.storedproc

  • ID – int.
  • ResultsSet – int.
  • Schema – XML.
  • Date – DateTime.

All was going well until i found a stored proc that has is causing me headache:-

The stored procedure :-

  1. has multiple results sets.
  2. has columns that contains the same column name ie. (person.name, area.name).
  3. has data contains with illegal xml characters.
  4. has results in excess of 120000 rows.

This breaks my intital soultion, does anyone have any knowlege on database test driven development that they would like to share, or have alternative solutions that could be of use?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T18:47:57+00:00Added an answer on May 26, 2026 at 6:47 pm

    I have had a great deal of success using the DbFit library (in conjunction with Fit/Fitnesse) to develop stored procedures in a test-first manner. Tests are written in HTML, either as standalone files (Fit) or Wiki pages (FitNesse). DbFit manages the database connectivity, executes queries and stored procedures, and (by default) wraps each individual test in a transaction to help keep things repeatable.

    For more on Fit/Fitnesse, see the FitNesse site and the questions tagged fitnesse here on StackOverflow. DbFit can be found on GitHub.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been tasked with developing a solution that tracks changes to a database.
I'm developing a solution which uses an ActiveX control (a commercial one which we
I'm developing a solution that allows people to upload a DOCX file as a
I'm developing printing solution for MS Office 2007. Office automation is not right for
I am developing a Reporting Services solution for a DOD website. Frequently I'll have
I'm developing a custom SharePoint solution which consist of a feature and a timer
I am developing an custom API for a web solution and I am using
In the web-application I'm developing I currently use a naive solution when connecting to
After developing a WPF application without Source Control, I decided to add the solution
I'm developing what is essentially a specialized firewall application. The solution needs to be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.