Re: Invalid stored procedures are getting created which have errors
From: Dan Guzman (guzmanda_at_nospam-online.sbcglobal.net)
Date: 10/29/04
- Next message: jonjo: "Re: stored procedure"
- Previous message: Tibor Karaszi: "Re: Thanks!"
- In reply to: Manny: "Invalid stored procedures are getting created which have errors"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 29 Oct 2004 08:18:21 -0500
To add to David's response, one method to validate procs is to execute with
FMTONLY ON, passing any needed parameters as NULL. This will catch deferred
name resolution errors. However, the only way to completely test the proc
is to actually execute it. This is especially true with dynamic SQL.
SET FMTONLY ON
GO
EXEC spAccountCustomerAdd
GO
SET FMTONLY OFF
GO
-- Hope this helps. Dan Guzman SQL Server MVP "Manny" <mneupane@gmail.com> wrote in message news:6162b3aa.0410281304.73741c5a@posting.google.com... > Hello, > > i'm having a strange issue with SQL server 2000 (sp3). i'm able to > create stored procedures that have critical erros. for example, i'm > able to create the following stored procedure in the tempdb table even > the the table, nor the columns exist any where. is there a setting > i've changed on the database that is supressing the validation of the > stored procedures. > > > CREATE PROCEDURE spAccountCustomerAdd > AS > > select asdfkljasdk,dkajfk,dkjf > from blah11 > > > any help would be appreciated.. > > Manny
- Next message: jonjo: "Re: stored procedure"
- Previous message: Tibor Karaszi: "Re: Thanks!"
- In reply to: Manny: "Invalid stored procedures are getting created which have errors"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|