If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > How to list views, store procedures on a particular table in all databases.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-13-09, 07:45
Ruchika Ruchika is offline
Registered User
 
Join Date: Feb 2009
Posts: 1
How to list views, store procedures on a particular table in all databases.

Hi ,

I want to list down all the views, stor procs and functions made on a particular table. The search should not be confined to particular database.
Reply With Quote
  #2 (permalink)  
Old 02-13-09, 07:49
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
What RDBMS are you using?
__________________
George
Twitter | Blog
Reply With Quote
  #3 (permalink)  
Old 02-13-09, 07:54
mike_bike_kite mike_bike_kite is offline
vaguely human
 
Join Date: Jun 2007
Location: London
Posts: 2,519
Quote:
Originally Posted by Ruchika
Hi ,

I want to list down all the views, stor procs and functions made on a particular table. The search should not be confined to particular database.
That's nice. I want to build a small apartment on the cliffs of a little Greek island and overlooking the Aegean sea. Perhaps one day ...
Reply With Quote
  #4 (permalink)  
Old 02-13-09, 09:27
blindman blindman is offline
World Class Flame Warrior
 
Join Date: Jun 2003
Location: Ohio
Posts: 11,726
Quote:
Originally Posted by mike_bike_kite
That's nice. I want to build a small apartment on the cliffs of a little Greek island and overlooking the Aegean sea. Perhaps one day ...
Hopefully it won't have internet access.
__________________
If it's not practically useful, then it's practically useless.

blindman
www.chess.com: "sqlblindman"
Reply With Quote
  #5 (permalink)  
Old 02-13-09, 09:30
blindman blindman is offline
World Class Flame Warrior
 
Join Date: Jun 2003
Location: Ohio
Posts: 11,726
Ruchika, information about the tables and other objects in a database are typically stored in system tables. The names an structures of these system tables vary across database servers and versions. You should post your question in one of the subforums for the specific database engine you are using.
__________________
If it's not practically useful, then it's practically useless.

blindman
www.chess.com: "sqlblindman"
Reply With Quote
  #6 (permalink)  
Old 02-17-09, 19:00
loquin loquin is offline
Super Moderator
 
Join Date: Jun 2004
Location: Arizona, USA
Posts: 1,797
that being said, several vendors support the information_schema, including SQL Server (2005/2008), PostgreSQL, and MySQL
__________________
Lou
使大吃一惊
"Lisa, in this house, we obey the laws of thermodynamics!" - Homer Simpson
"I have my standards. They may be low, but I have them!" - Bette Middler
"It's a book about a Spanish guy named Manual. You should read it." - Dilbert

Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On