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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T18:10:58+00:00 2026-05-17T18:10:58+00:00

I am working in Sql Server 2008 and there is a change of table

  • 0

I am working in Sql Server 2008 and there is a change of table in my database. So I need to know which all the queries I am using that table or I need to know which all queries will throw errors.I has changed some SP to work fine.But there is a lot of queries which may cause errors.So If there is possible to find which all queries will return error like table not found or column not found.

I got the sp which is using by the following query

SELECT ROUTINE_NAME, ROUTINE_DEFINITION 
    FROM INFORMATION_SCHEMA.ROUTINES 
    WHERE ROUTINE_DEFINITION LIKE '%machine_ID%' 
    AND ROUTINE_TYPE='PROCEDURE'

But the problem is that it will returns all the SP which is contains the name.But for some queries I changed the name but still uses ‘machine_ID’ as an alias name.So the above query will returns all the SP which contains ‘machine_ID’.It may be used in query inside SP or it may be used as a parameter.So how can i get the query which will cause error due to absence of table or coloumn

In some sp it shows error like this while execution

Invalid object name 'tblMachineryHdr'. 

Whether it is possible to know what all the SP will returns errors like this?
Thanks in advance !

  • 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-17T18:10:58+00:00Added an answer on May 17, 2026 at 6:10 pm

    Not sure if you can figure this out with just a few queries – but there are tools available that can help you do this – especially useful to do this before you make a change!

    See e.g. Red Gate’s SQL Dependency Tracker as an option – extremely useful!

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

Sidebar

Related Questions

I'm working on a C# project using a SQL Server 2008 database. There are
I'm working on performance tuning my SQL Server 2008 database and am using the
I am working on a project which uses a relational database (SQL Server 2008).
I'm working with a SQL Server 2000 database that likely has a few dozen
I'm working on an email solution in SQL Server ONLY that will use Database
I'm working on a knowledge base project using SQL Server 2008 Full Text Search
On Sql Server 2008, I have a slow-running update query that has been working
We have a legacy database which is a sql server db (2005, and 2008).
I'm working on SQL Server 2008-R2 and I need to use multiple tables join.
I'm working with EF 4.1 CTP5 and SQL Server 2008. I need to understand

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.