Mike Levan
SSChampion
Points: 14201
More actions
July 31, 2008 at 2:49 pm
#196386
How could I find store procs in a database which are using cursors?
List of store procs in which cursors are being used?
Jack Corbett
SSC Guru
Points: 184394
July 31, 2008 at 2:54 pm
#851550
Use Information_Schema.Routines Routine_Defintion column.
[font="Courier New"]SELECT
routine_name,
routine_type,
routine_definition
FROM
information_schema.routines
WHERE
routine_definition LIKE '%cursor%'[/font]
Jack CorbettConsultant - Straight Path SolutionsCheck out these links on how to get faster and more accurate answers:Forum Etiquette: How to post data/code on a forum to get the best help Need an Answer? Actually, No ... You Need a Question
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply