list of views in a table on a databse in sql2005

  • how can i find the list of all views on a particular table in a datbase in sql 2000 /2005

  • run the procedure sp_depends; it will show all tables,views, functions and procedures that depend on your table;

    because of late binding on stored procedures, it is possible that a procedure has a dependancy, but does not show up on this list, but it is 100% accurate for tables/views/functions.

    exec sp_depends YourTableName

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply