BUG: ODBC Script File Does Not Act Like Stored Procedure Editor (166676)
The information in this article applies to:
- Microsoft Visual InterDev 1.0
- Microsoft Data Access Components 2.5
This article was previously published under Q166676 SYMPTOMS
When creating a database Stored Procedure in an ODBC Script File window via
the ODBC Script File dialog box (from the File menu, select New and click
the File tab), the ODBC Script File dialog box does not act like a Stored
Procedure Editor dialog box. It allows a save of the Stored Procedure only
once, failing on any successive attempts to save the Stored Procedure.
CAUSE
Visual InterDev does not parse any commands in the ODBC Script File window
to see if they are Stored Procedures, Triggers, or Views. It treats them
like regular ODBC commands and does no special work to ensure that they run
properly. However, the Stored Procedure Editor ensures that a stored
procedure saves without encountering the error saying that the Stored
Procedure already exists in the database.
RESOLUTION
To work around this problem, right-click on the Database Connection node in
the Data View tab of the Workspace window, and click Refresh. Expand the
connection node to see the Stored Procedures folder. Expand that folder.
Double-click the Stored Procedure created in the ODBC Script File window to
edit it.
NOTE: Another workaround is to create the Stored Procedure by selecting
Data View, right-clicking the Stored Procedures folder, selecting New
Stored Procedure, then Write Procedure. Right-click in the window and
select Run. Right-click and select Run again. No error appears.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products
listed at the beginning of this article. We are researching this
bug and will post new information here in the Microsoft Knowledge
Base as it becomes available.
REFERENCES
For the latest Knowledge Base articles and other support information on
Visual InterDev and Active Server Pages, see the following page on the
Microsoft Technical Support site:
Modification Type: | Major | Last Reviewed: | 5/2/2006 |
---|
Keywords: | kbBug kbCtrl kbpending KB166676 |
---|
|