Share Knowledge...
Knowledge is happiness...
Beyondrelational
Tuesday, April 13, 2010
Get Drop Commend to all Procedure & Functions
SELECT
'Drop '+
CASE
WHEN TYPE='P' THEN 'procedure'
ELSE
'function'
END
+' '+ NAME FROM sys.all_objects
WHERE
TYPE in ('p','fn','tvn')
AND
is_ms_shipped=0
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment