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

  • SEARCH
  • Home
  • 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 311833
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T07:57:39+00:00 2026-05-12T07:57:39+00:00

I am looking at doing some automated unit testing and I was wondering if

  • 0

I am looking at doing some automated unit testing and I was wondering if you know of any way that one can “Parse”/”Compile” a stored proc(s) from code (i.e. from within .net).

The case I am trying to catch is if someone makes a change to a table (i.e. removes a column) and that breaks a stored proc somewhere that they don’t know about. Hence I think I’m wanting to do the equivalent of what “parse” does within SQL Server Management Studio. I don’t want to execute the stored proc, just check it.

Cheers
Anthony

EDIT:
I agree that testing if it compiles isn’t a good test, but calling each stored proc I have (1000+) is a very large undertaking considering that I would have to setup an unimaginable amount of test data, conditions and code, so that I can call the stored proc without it failing due to data issues or me not supplying the SP with the correct parameters. But I might be able to get a quick win by testing if it compiles…

  • 1 1 Answer
  • 1 View
  • 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-12T07:57:39+00:00Added an answer on May 12, 2026 at 7:57 am

    I’m not sure how you’d test if it is a valid stored proc or not, but just testing whether it compiles or not is not a good test, you’d need to call it and check the return to make sure it returns the correct data.

    have a look at this question Syntax check all stored procedures?

    and also here Recompile stored procs?

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

Sidebar

Related Questions

So - management is looking to do a push to move towards doing unit-testing
I'm doing some parsing that requires one token of lookahead. What I'd like is
I'm looking into using ftplib (and possibly ftputil ) for doing some automated FTP
I am looking for some way to code a function (I'm open to any
I have been looking in to doing some test driven development for one of
I a doing a weird project, and looking to convert some short, simple datagrams
I was just doing some random testing on locking in multi-threading this morning and
I'm looking for another way of doing the following: function call_any_function(func, parameters){ // func
I'm doing a grad-school software engineering project and I'm looking for the protocol that
I have JavaScript that is doing activity periodically. When the user is not looking

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.