Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SqlExec Error catched with a try/catch block

Status
Not open for further replies.

olck2a

Programmer
Aug 19, 2003
2
FR
Hi,

I would like to verify that an sql command, entered by the user is valid. Indeed, I do a sqlExec with this command in parameter, and see if it returns an exception or not. I can catch the exception by a basic try/catch block. My issue, is that, even if I catch the exception, the sqlExec, show me a nasty error message in a popup box. Is there a way to disable this message box ?

Thanks a lot

Olivier OTTAVI
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top