Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

stored procedure is valid or not valid. Expand / Collapse
Author
Message
Posted Thursday, December 20, 2007 12:56 PM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Saturday, September 12, 2009 9:12 PM
Points: 65, Visits: 224
Hi All
One question :Is there any method to find out stored procedure is valid or not valid.
Please help me
Regards,
Shine
Post #435362
Posted Thursday, December 20, 2007 1:16 PM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 2:02 PM
Points: 40,993, Visits: 38,292
I don't believe so... other than running it or taking it apart and running the peices...

You could always setup to exec it and run an estimated execution plan on it, but if it creates temp tables, you may get false errors.


--Jeff Moden
"RBAR is pronounced "ree-bar" and is a "Modenism" for "Row-By-Agonizing-Row".

First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."

Helpful Links:
How to post code problems
How to post performance problems
Post #435375
Posted Thursday, December 20, 2007 1:23 PM
SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: Today @ 11:07 AM
Points: 4,000, Visits: 4,364
It also really depends on what you mean by valid? You could look at the dependencies to make sure they all exist for that SP.

select object_name(so.id), object_name(depid)
from sysdepends sd
inner join sysobjects so
on so.id = sd.id
where so.xtype = 'P'





John Rowan

======================================================
======================================================
Forum Etiquette: How to post data/code on a forum to get the best help - by Jeff Moden
Post #435379
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse