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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T18:51:36+00:00 2026-05-11T18:51:36+00:00

On SQL Server 2005, you’re supposed to be able to find dependencies in Manglement

  • 0

On SQL Server 2005, you’re supposed to be able to find dependencies in Manglement Studio by right-clicking an object and choosing “View Dependencies”. The dialog gives you a choice of “Objects that depend on this” (what I’m calling down-stream) or “Objects that this depends on” (up-stream).

Both directions seem to work adequately for Table objects, and View objects seem to report good information in the up-stream direction. The down-stream list for a View, however, appears to consist only of the View itself–even when I know that there are other dependents (in this case, another view).

Is there a way that I can find this information? I’m comfortable with writing queries against system tables if I have a clue about which to target….

  • 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-11T18:51:36+00:00Added an answer on May 11, 2026 at 6:51 pm

    try:

    sp_depends YourViewName
    

    if you get no results, drop and recreate your view and try again. Dropping and recreating may work for the GUI but I didn’t try there

    this is a little slow (and not the best query), but give it a try:

    DECLARE @Search  varchar(300)
    SET @Search='yourViewName'
    SELECT DISTINCT
        LEFT(so.name, 120) AS Object_Name,
        "object_type"=left(
              case so.type
            when 'U' then 'Table - User'
            when 'S' then 'Table - System'
            when 'V' then 'Table - View'
            when 'TR' then 'Trigger'
            when 'P' then 'Stored Procedure'
            when 'C' then 'Constraint - Check'
            when 'D' then 'Default'
            when 'K' then 'Key - Primary'
            when 'F' then 'Key - Foreign'
            when 'L' then 'Log'
            when 'R' then 'Rule'
            when 'RF' then 'Replication Filter stp'
            else '<<UNKNOWN '''+so.type+'''>>'
        end  -- case so.type
            ,50)
        FROM syscomments sc 
            INNER JOIN sysobjects so 
                ON so.id = sc.id
        WHERE
            text Like '%'+@Search+'%'
        ORDER BY 
            2,1
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 136k
  • Answers 136k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Exlcuding Windows Server OS', IIS6 needs Windows XP Pro 64-bit… May 12, 2026 at 7:13 am
  • Editorial Team
    Editorial Team added an answer Well, uninstalled VS2008, deleted every related directory I could find,… May 12, 2026 at 7:13 am
  • Editorial Team
    Editorial Team added an answer Well, I reinstalled VS2008 (for other reasons) and the intellisense… May 12, 2026 at 7:13 am

Related Questions

On SQL Server 2005, you're supposed to be able to find dependencies in Manglement
What is the best way to develop on SQL Server 2005 machine locally while
I'm on SQL Server 2005 and I am getting an error which I am
I'm running a SQL query on SQL Server 2005, and in addition to 2
How do you manage revisions of stored procedures? We have a BI solution on

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.