PRB: Programmatically Adding Stored Procedure May Cause ErrorID: Q164355 The information in this article applies to:
SYMPTOMSThe following error may appear when you programmatically add a stored procedure to a database container with the APPEND PROCEDURES FROM command and set SAFETY to ON:
The dialog box has a choice to Add or Cancel.
RESOLUTIONYou should add either a blank line to the beginning of the file being appended or a carriage-return line-feed to the end of the database stored procedure.
STATUSThis behavior is by design.
MORE INFORMATION
Steps to Reproduce BehaviorExecute the following code, which creates a database container and a procedure file:
After closing the Stored Procedures window, issue the following from the
Command window:
Issue the APPEND PROCEDURES again and the error should occur.
If the text file is edited to add a blank line to the beginning of the file, the error does not occur. If FPUTS is used instead of FWRITE during the creation of the procedure file, the error does not occur because FPUTS appends a carriage-return, line-feed to end of the file, which allows the newly appended procedure to start after, rather than on, the last line of the stored procedures. Setting SAFETY OFF, does not show the error dialog box and the procedure is appended to the stored procedures but not necessarily in the correct location. Additional query words:
|
Last Reviewed: November 1, 1998 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |