Groups | Blog | Home
all groups > sql server odbc > august 2005 >

sql server odbc : see last error in VB (VS .NET)


Eitan M
8/11/2005 12:00:00 AM
Hello,
I am using VB (VS .NET)
Also, I am using microsoft application block.
After calling and running a database command (select)
I get an exception.
I want to catch and display this error string.

How can I do that ?

Thanks :)

Sue Hoegemeier
8/14/2005 7:06:48 PM
You use a try..catch block. Look up the topic
Try-catch exception handling
in VS.Net help. You would also want to post VB.Net question
in one of the dot net newsgroups. You can use:
microsoft.public.dotnet.languages.vb

-Sue

On Thu, 11 Aug 2005 16:28:16 +0200, "Eitan M"
[quoted text, click to view]
AddThis Social Bookmark Button