Re: Is there a tool/util/script to do syntax check of all stored procedures?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Dan Guzman (guzmanda_at_nospam-online.sbcglobal.net)
Date: 12/04/04


Date: Fri, 3 Dec 2004 20:38:24 -0600

Here's a link to a thread on this subject: http://tinyurl.com/6g27f.

-- 
Hope this helps.
Dan Guzman
SQL Server MVP
"Bret Pehrson" <bret@classicade.com> wrote in message 
news:41B0EA19.E69480B3@classicade.com...
> Kalen Delaney wrote:
>>
>> Hi Bret
>>
>> Can you be a little more specific about what you want to do? Stored
>> procedures cannot be created if there are syntax errors, so they wouldn't 
>> be
>> IN the database if there were any errors.
>>
>> How are you thinking that errors might just show up at some point?
>
> What is happening is that I create a sp that is correct and working, then
> subsequently go in, for example, and change a field name in a table.  If 
> the sp
> references that field, it suddenly becomes invalidated, but that only 
> becomes
> obvious when trying to execute the sp or if I manually check the syntax.
>
> So, what I'm after is some way to do a check-syntax/recompile of all 
> stored
> procedures, and then be notified of any syntax errors.
>
> Any thoughts?
>
>
>> "Bret Pehrson" <bret@classicade.com> wrote in message
>> news:41B0DD0D.ABCB308E@classicade.com...
>> > Is there a tool/utility/script that will do a syntax check of all 
>> > stored
>> > procedures in a database?
>> >
>> > After doing some table maintenance, I occasionally have the need to 
>> > verify
>> > the
>> > associated stored procedures, and have resorted to the (very manual)
>> > process of
>> > opening a stored procedure and pressing the "check syntax" button for
>> > each...
>> > With several hundred stored procedures, it can quickly get a little
>> > tedious.
>> >
>> > Thanks 


Relevant Pages

  • Re: Is there a tool/util/script to do syntax check of all stored procedures?
    ... "Bret Pehrson" wrote in message ... > obvious when trying to execute the sp or if I manually check the syntax. ... and then be notified of any syntax errors. ... >>> associated stored procedures, and have resorted to the ...
    (microsoft.public.sqlserver.tools)
  • Re: Is there a way to syntax check all stored procedures (without deferred name resolution)
    ... syntax and objects used in the stored procedures, ... > "Jacco Schalkwijk" ... >> This procedure is created fine, due to Deferred Name Resolution. ... You can check the syntax of a stored procedure in Query Analyzer by ...
    (microsoft.public.sqlserver.programming)
  • Re: Accessing MS Access and SQL Server from VB 6
    ... is no simple way to support multiple type of the databases any way. ... > client side SQL statements. ... > over to stored procedures, but I'm not sure of the rules regarding which ... > syntax for an access date to the syntax for a SQL server date. ...
    (microsoft.public.vb.database.ado)
  • Re: listbox rowsource
    ... > Are there any stored procedures, triggers, default values etc. ... the biggest problem is the sporadic nature of the syntax error... ...
    (microsoft.public.fox.vfp.forms)