Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
imughal
Posting Yak Master
192 Posts |
Posted - 2004-08-31 : 06:32:06
|
| hi,i have database comprises of tables, stored procedures and views. now i want a list of all user created stored procedure and views.i know how to get the tables list. like thatselect * from information_schema.tablesbut i want to list the stored procedures and views. Can anyone tell me how to get the list.thx |
|
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2004-08-31 : 06:38:03
|
| select * from sysobjectswhere type in ('v', 'p')-- v = vievs, p = sprocsGo with the flow & have fun! Else fight the flow :) |
 |
|
|
mr_mist
Grunnio
1870 Posts |
Posted - 2004-08-31 : 06:49:05
|
| INFORMATION_SCHEMA.ROUTINES and INFORMATION_SCHEMA.VIEWS contain the info too.-------Moo. :) |
 |
|
|
imughal
Posting Yak Master
192 Posts |
Posted - 2004-08-31 : 06:55:39
|
| thx. |
 |
|
|
|
|
|