Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / ADO.NET / June 2004

Tip: Looking for answers? Try searching our database.

ADO.NET with network problems

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mika M - 08 Jun 2004 09:48 GMT
Hi!

I have made quite simple VB.NET (2003) Windows Forms-application to insert
only new lines into single database table for tracing purposes. (Other form
is used to browse target table with filterings.) I created inserting form
creating DataSet with one DataTable, bound these DataTable fields into
ComboBoxes and TextBoxes, and used DataAdapters Update method to insert new
lines into Database table of the DataSet DataTable.

All this is working fine now, but application should be more network faulty
tolerant. I mean if network is temporarily down (cutting or something like
that), application should work without errors. Any suggestions how to do
this? How this kind of network situations use to be handled?

I tried to write something into one of the TextBoxes, and when I moved focus
to other TextBox after I unplugged network cable of my workstation, I'll get
the following error message...

"SQL Error

[DBNETLIB] [ConnectionRead (recv()).]General network error. Check your
network documentation."

I think it should be possible to save lines into DataSet DataTable dispite
network is temporarily down, and if DataAdapters Update method fails then
catch DataAdapter error, and try saving later - or is it? Hopefully I don't
have to remove databindings of the ComboBoxes and TextBoxes, and change
application to use INSERT INTO sql-statements.

--
Thaks in advance!

Mika
Mika M - 10 Jun 2004 08:18 GMT
Hi Me! :)

Because nobody is answering - I answer by myself ;)

check link
http://msdn.microsoft.com/vbasic/default.aspx?pull=/library/en-us/dndotnet/html/
northwindunplugged.asp

it might useful.

-- Mika

> Hi!
>
[quoted text clipped - 29 lines]
>
> Mika

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.