February 22, 2016 at 3:24 pm
Hey,
i need to search one stored procedure is located under which database .
please any one help me giving the script.
February 22, 2016 at 5:10 pm
Sree Divya (2/22/2016)
Hey,i need to search one stored procedure is located under which database .
please any one help me giving the script.
Write a loop to step through the results of a Select from sys.Databases and execute a bit of dynamic SQL to check sys.objects for each database listed. I'd write one for you but you'll be able to support it better if you write your own.
--Jeff Moden
Change is inevitable... Change for the better is not.
February 23, 2016 at 5:35 am
I'd just go over to Red-gate.com and get a copy of SQL Search[/url]. It's a free tool and will do pretty much any kind of search you need against your databases.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply