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.

 All Forums
 Development Tools
 ASP.NET
 How to locate database of stored procedure

Author  Topic 

Swati Jain
Posting Yak Master

139 Posts

Posted - 2007-06-21 : 03:36:19
I have tried following query but it is not working
select count(*) from information_schema.Stored_Procedures where stored_Procedure = 'Order_ShipThenInvoice'

What is the exact query

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2007-06-21 : 03:48:48
where did you get the object name 'information_schema.Stored_Procedures' from ?
SELECT COUNT(*) FROM INFORMATION_SCHEMA.ROUTINES 
WHERE ROUTINE_NAME = 'Order_ShipThenInvoice'



KH

Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-06-21 : 10:26:03
or

Sp_helpdb 'yourDB'

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -