SiteExperts.com Logo Home | Community | Developer's Paradise
User Groups | Site Tools | Site Information | Search
 Main Menu
 Forums
SiteExperts.com Forums
All Discussions

SiteExperts Feedback
The Lounge
Dynamic HTML
Site Design/ Critiques
HTML and CSS
XML Technologies
The Wireless Internet
Internet Explorer
Microsoft .NET
The Server
Technical Support

Sponsored Links

User Groups : Forums : SiteExperts : Microsoft .NET :

Previous DiscussionNext Discussion
 C# OleDbCommand.ExecuteNonQuery() hangs
I have the following:

OleDbConnection odbConn;
OleDbDataAdapter odbAdapter;
OleDbCommand odbCommand;

public void UpdateRecord()
{
try
{
odbAdapter = new OleDbDataAdapter();
odbCommand = new OleDbCommand(QueryToExecute, odbConn);

odbConn.Open();
odbCommand.ExecuteNonQuery();
odbConn.Close();
}
catch (Exception ex)
{
throw new Exception(ex.Message.ToString());
}
}

And the odbCommand.ExecuteNonQuery() just hangs. It never proceeds beyond that line, to the odbConn.Close(), nor does it throw an exception.

The connection string is correct, because I can get data, and the query itself works, so what could be the problem?

This is a console app, if that makes a difference.

Started By Monte on Jun 16, 2009 at 10:40:02 AM

6 Response(s) | Reply

View All Replies
omega160 on Feb 3, 2011 at 2:51:04 PM

Can you explain furthur how you did this....code example?  I am having the exact same issue?


View All Replies

To respond to a discussion, you must first logon.

If you are not registered, please register yourself to become a member of the SiteExperts.community.

User Name
Password
Copyright 1997-2000 InsideDHTML.com, LLC. All rights reserved.