Home Forums SQL Server 2005 T-SQL (SS2K5) Customize SQL error message for VB.NET App use RE: Customize SQL error message for VB.NET App use
Rajat Jaiswal-337252
SSCommitted
Points: 1779
More actions
October 7, 2012 at 12:27 pm
#1546510
Hi,
In both SQL Server and VB.NET you have to use Try catch block.
What ever error you grab in SQL Server catch box just Raised it with RAISERROR syntax.
Now in VB.NET you can capture this and show or do what ever operation you want.