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 8338371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:34:21+00:00 2026-06-09T04:34:21+00:00

I am expected to make (small) changes to the legacy SQL application on Microsoft

  • 0

I am expected to make (small) changes to the legacy SQL application on Microsoft SQL Server 2008. It uses several databases, many stored procedures, functions, and some CLR assemblies.

There is no big-picture documentation, only some common knowledge in the heads of the people around.

What tools do you use when you search for say all places where the stored procedure is called? I am not the experienced SQL developer. My experience fits better with programming languages where source code is stored in text files rather than in the databases.

What tools would you recommend to learn the content of the legacy SQL application?

Thanks, Petr

  • 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-06-09T04:34:23+00:00Added an answer on June 9, 2026 at 4:34 am

    For the specific question:

    all places where the stored procedure is called?

    You can use brute force, though this will lead to some false positives where the procedure name is simple and may appear in code naturally (even as part of another object name), or in comments:

    SELECT OBJECT_SCHEMA_NAME([object_id]), OBJECT_NAME([object_id])
      FROM sys.sql_modules
      WHERE definition LIKE '%your_procedure_name%';
    

    This also doesn’t capture calls to the procedure that are built with dynamic SQL, but I don’t think there is a perfect all-encompassing solution for this problem anyway. You can also discover cases where the stored procedure is being called by a job:

    SELECT j.name FROM msdb.dbo.sysjobs AS j
      INNER JOIN msdb.dbo.sysjobsteps AS s
      ON j.job_id = s.job_id
      WHERE s.command LIKE '%your_procedure_name%';
    

    (Same caveats exist for false positives and dynamic SQL there, as well as nested procedure calls which won’t be caught even if they are relevant.)

    Some other ideas:

    • Red-Gate has a free tool called SQL Search or, probably more appropriately, SQL Dependency Tracker.
    • There is a free version of SQL Digger but the pro version is required for stored procedures.
    • You can try the dependency viewer in Management Studio, but I don’t really trust the underlying data.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing a small WebSocket server application that should support both draft 17
I am trying to make the vertical stretch to work as expected i WPF,
I tried using make defconfig to compile the kernel, but as expected, it failed
As expected, the compiler (VisualStudio 2008) will give a warning warning C4715: 'doSomethingWith' :
Ok my C is a bit rusty but I figured I'd make my next(small)
as a small (large) hobby project I've set out to make a (very primitive)
I have an asp .net webforms app that uses forms authentication. For a small
I've heard many people say that if the number of expected elements in the
I was asked to make a small div cycle a fade in and fade
I am building a small application in RoR that has a form asking for

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.