Groups | Blog | Home
all groups > sql server clients > february 2006 >

sql server clients : Diagnose SQL Procedures.


Rogers
2/16/2006 6:07:36 PM
Hi there,

Is there any way I can create one user defined stored procedure that will
let me know all the stored procedure and functions in current database have
compiled successfully, there is no compilation error in the stored
procedures ?

Basically, I have a database and there are around 90 stored procedure and I
want to check all the stored procedures compiled successfully or still they
need to compiled so I need any query or stored procedure through which I can
diagnose this...

Thanks in advance

Andrew J. Kelly
2/16/2006 7:14:55 PM
What exactly do you mean by compile? Sp's only get compiled the first time
they are run. They get parsed and checked when you create them. There really
isn't anything such as an unsuccessful compilation.

--
Andrew J. Kelly SQL MVP


[quoted text, click to view]

David Gugick
2/20/2006 12:53:58 PM
[quoted text, click to view]

Maybe he wants to know how to verify existing procedures against a
schema that has changed. If that's the case, there's some information
here that might help:

http://groups.google.com/group/microsoft.public.sqlserver.programming/browse_thread/thread/742f2a3851093c53/08eb685e696368c1?lnk=st&q=group%3Amicrosoft.public.sqlserver.*+%22stored+procedure%22+parameter+gugick&rnum=19&hl=en#08eb685e696368c1

--
David Gugick - SQL Server MVP
Quest Software
AddThis Social Bookmark Button