Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
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-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Yesterday @ 8:45 PM
Points: 35,342, Visits: 31,875
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."

(play on words) "Just because you CAN do something in T-SQL, doesn't mean you SHOULDN'T." --22 Aug 2013

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

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Tuesday, October 7, 2014 11:31 PM
Points: 3,840, Visits: 3,847
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