RAISERROR descriptions
From: Ivar Svendsen (anonymous_at_discussions.microsoft.com)
Date: 02/29/04
- Next message: CoolHandSid: "Merge Similar rows - Help needed"
- Previous message: Guy Brom: "performance consideration"
- Next in thread: Roji. P. Thomas: "Re: RAISERROR descriptions"
- Reply: Roji. P. Thomas: "Re: RAISERROR descriptions"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 29 Feb 2004 06:41:07 -0800
Hello.
I am connecting Access 2002 to a Microsoft SQL 2000 server.
When I try to run a stored procedure that returns errors, I can only read the error codes, and not the description of the error. Here is some example code that I am using:
CREATE PROCEDURE dbo.Test
AS
BEGIN
RAISERROR ( 'Test', 16, 1 )
END
In Access I try to write the following code:
Sub TestError()
On Error Goto HandleError
CurrentProject.Connection.Execute "Test"
HandleError:
For Each ErrObj In CurrentProject.Connection.Errors Do
Debug.Print ErrObj.Number, ErrObj.Description
Next
End Sub
The output shows the correct error codes, but the description is allways missing.
Could anyone please help me out.
Regards,
Ivar Svendsen
- Next message: CoolHandSid: "Merge Similar rows - Help needed"
- Previous message: Guy Brom: "performance consideration"
- Next in thread: Roji. P. Thomas: "Re: RAISERROR descriptions"
- Reply: Roji. P. Thomas: "Re: RAISERROR descriptions"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|