I have a stored procedure that contains like 10 different INSERTS, is it possible to return the COUNT of the rows affected on each INSERT to ASP.NET c# page so i can display Stored Procedure process for the client viewing that ASP.NET page?
I have a stored procedure that contains like 10 different INSERTS, is it possible
Share
On the server side send the message to the client using
RAISERRORfunction with severity 10 (severity higher than 10 causes exception that breaks procedure execution, i.e. transfers execution to theCATCHblock, if there is one). In the following example I haven’t added error number, so the default error number of 50000 will be used byRAISERRORfunction. Here is the example:On the client side, set the appropriate event handlers, here is an example: