Return all InfoMessages
From: Steve (morriszone_at_hotmail.com)
Date: 03/17/05
- Next message: Diógenes Vilarroel \(Hotmail\): "sfasdfasf"
- Previous message: Madcap: "Re: ADO dates and '0001-01-01'"
- Next in thread: Kevin Yu [MSFT]: "RE: Return all InfoMessages"
- Reply: Kevin Yu [MSFT]: "RE: Return all InfoMessages"
- Messages sorted by: [ date ] [ thread ]
Date: 17 Mar 2005 10:20:08 -0800
I would like to return all messages from a 3 cursor stored procedure to
the user of an admin AccessXP front end to a SQL Server 2000 database
via ADO 2.7. An admin updates a table that stores NTLogins/users/roles
and fires a sproc to update the server. I've tried looping through
pConnection.Errors within the InfoMessage event and this returns the
message I see in QA for each cursor if the user has only changed 1
record. However if the user first updates more than 1 record in Access
and then executes this sproc (via a command object) I still get back
only 1 message per cursor as opposed to 1 message per cursor per record
as I do in QA. pConnection.Errors.Count always stays at 3 no matter how
many records are updated, though in QA I get 3 * the number of records
messages. I can also reproduce this with print. QA will display say
print messages for 3 records but ADO will only
display 3 messages, those for the first record in the batch. I've tried
using a stream but get the same results. I can load all the info into
an output parameter but would like to use InfoMessages to build 1
complete string for Msgbox.
- Next message: Diógenes Vilarroel \(Hotmail\): "sfasdfasf"
- Previous message: Madcap: "Re: ADO dates and '0001-01-01'"
- Next in thread: Kevin Yu [MSFT]: "RE: Return all InfoMessages"
- Reply: Kevin Yu [MSFT]: "RE: Return all InfoMessages"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|