Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
or to add missing where clausesOriginal Sproc CREATE PROC testProc as SELECT stuff FROM myTable WHERE which_stuff = "my stuff" go New Proc (myTable has a historic equivalent) CREATE PROC testProc_hist ( @hist_date datetime ) as SELECT stuff FROM myTable_hist WHERE which_stuff = "my stuff" AND hist_date = @hist_date go
Thanks !Original Sproc CREATE PROC testProc as SELECT stuff FROM myTable WHERE which_stuff = "my stuff" go Modified Sproc CREATE PROC testProc as SELECT stuff FROM myTable WHERE which_stuff = "my stuff" AND is_deleted = 'N' go
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Parse SQL in Stored Procedures
by whereiskurt (Friar) on Jul 05, 2007 at 19:41 UTC |