Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Syntax Check Stored Procedures
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Divers
Thread ID:
00948342
Message ID:
00948345
Vues:
16
>We have made some major changes to our tables. Is there a way to programmatically syntax check all stored procedures all at once?

Hi Mike,

Just an untested idea. You can get the list of all stored procedurec and there text using following select. Keep in mind that there could be more than one line per stored procedures because there text is stored in chunks.
SELECT so.name, so.id, sc.colid, sc.text
   FROM sysobjects so
	JOIN syscomments sc ON sc.id = so.id
   WHERE type = 'P'
After that you can send each stored procedure for parsing using SET PARSEONLY ON statement.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform