Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
If disconnect how can i trigger this event display messa
Message
From
27/08/2011 00:45:10
 
 
To
26/08/2011 22:21:16
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
Network:
Windows XP
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01521852
Message ID:
01521975
Views:
30
>ok, thank you for reply me.You mean SqlConnection.open in before ,i will need to try .... Catch .....End Try.
>But if i use dataset, TableAdapterManger then how to handle or not? Thank you
>
>
>
>
> Me.TableAdapterManager.UpdateAll(Me.MyDataSet)
>


I don't use TableAdapter, but you can put that call in a try/catch block, and catch for SqlException. Take a look at the MSDN article on SqlException:

http://msdn.microsoft.com/en-us/library/686y883x.aspx

Also, you might want to do a Google search on .NET SqlException. I found several blogs on the topic ... so, do a little reading there, you'll probably find some good ideas.

~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform