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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T11:21:31+00:00 2026-06-07T11:21:31+00:00

I have a few tables in SQL server 2008. I want to find a

  • 0

I have a few tables in SQL server 2008. I want to find a list of all the stored procedures and views that are using this table. I am new to SQL server, I think there has to be an easy way rather than opening each view and stored procedure and search for the table name. Thanks

  • 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-07T11:21:34+00:00Added an answer on June 7, 2026 at 11:21 am
    SELECT OBJECT_SCHEMA_NAME(object_id),
      OBJECT_NAME(object_id)
    FROM sys.sql_modules
    WHERE [definition] LIKE '%table name%';
    

    This is a little more reliable than the dependency views, because those rely on objects being compiled in the right order.

    But there are some caveats:


    This has the potential for false positives, of course, since you could have

    -- table name
    

    Or the table name you’re searching for could be a common word that appears naturally in other code even though it doesn’t reference that specific table.


    This could potentially miss references, e.g. if you build strings dynamically or pass table names in to dynamic SQL.

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

Sidebar

Related Questions

I have a database with a few tables running on SQL Server 2008, and
We have a few tables in our SQL Server (2005 & 2008) database with
In my SQL Server 2008 Enterprise I have a database that contains several tables:
I am using C#, EF and SQL Server and have few tables with parent-child
I have enabled CDC on few tables in my SQL server 2008 database. I
We have a few tables with persisted computed columns in SQL Server. Is there
I have a few thousand tables in my SQL Server instance, and I need
Does anyone have experience with using indexed view in MS SQL Server 2008? I
I'm using SQL Server 2008. I have a table with over 3 million records,
Technologies: SQL Server 2008 So I've tried a few options that I've found on

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.