I am using Delphi 5+4.30.0.13 version of SQL Server Data Access Components.
I develop code on a VM Win2K machine, and my users generally use XPs.
Much of the functionality of the system is in stored procedures and controlled by triggers.
Now I have a problem: when a trigger raises an error, the stored procedure also may report another error (Null value eliminated etc). On the development platform, both errors are shown on a dialog box.
On production platform, only the last error is shown, which is useless.
I am lost. What shall I do?
Edit: problem happens when I connect with DBConnection.Provider = prAuto. When I connect with prSQL, it works as expected. But I do not know what will not work in this case.
Strange RAISERROR Behaviour
Not much time.
Since I am a little bit short on time, I reverted to 3.80 version of SDAC. (Other problems happened with the application. Some queries stopped refreshing themselves, some grids started to behave peculiar..)
The sole reason I am interested in v 4.x was vista support. 3.80 does not work on vista, but 4.x does.
Anyway, currently I have no production systems on vista, thus could manage to go back.
Out of curiosity, I have downloaded the Microsoft server native client to my development environment, and viola! the same problem started to happen on the development machine too.
So I guess the problem is related to native clients way of handling error messages.
Interesting thing is v 3.8 just gives the message as : Unspecified error. I haven't noticed that before.
The sole reason I am interested in v 4.x was vista support. 3.80 does not work on vista, but 4.x does.
Anyway, currently I have no production systems on vista, thus could manage to go back.
Out of curiosity, I have downloaded the Microsoft server native client to my development environment, and viola! the same problem started to happen on the development machine too.
So I guess the problem is related to native clients way of handling error messages.
Interesting thing is v 3.8 just gives the message as : Unspecified error. I haven't noticed that before.