473,386 Members | 1,673 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

OleDbDataAdapter hangs on update

I have an application that is reading a database table and "copying" the data
to the identical table in another database. This table contains a field of
type OLE Object (which contains image, video, etc.). I am using an
OleDbDataReader to retrieve a single record at a time from the source DB. I
copy the retrieved values to a DataSet and then use an OleDbDataAdapter to
insert the new row into the destination DB. This appears to work fine "most
of the time"; however, the application will occasionaly hang on the
dataadapter.UPDATE. No error is given and the application does not respond
to an end request from the windows task manager (Windows XP) -- I have to end
the process.
Any ideas?

Mary

--
Message posted via http://www.dotnetmonster.com
Jan 6 '06 #1
1 1641
If the amount of data in the binary field is very large, you might be
experiencing some form of timeout problem.

If you leave the application, does it eventually recover or produce an
actual exception? If so, can you wrap the update with a specific exception
handler (E.g. SQLException) and have a look at the detailed exception message?

Also, you might be better off with some form of server-side solution to
improve the performance. Obviously, this is not always possible or adviseable
however it would certainly provide better performance than loading it into
memory on a client and then resubmitting the information back to the server
or different server etc.

Hope this helps,

-Eric
"Mary W via DotNetMonster.com" wrote:
I have an application that is reading a database table and "copying" the data
to the identical table in another database. This table contains a field of
type OLE Object (which contains image, video, etc.). I am using an
OleDbDataReader to retrieve a single record at a time from the source DB. I
copy the retrieved values to a DataSet and then use an OleDbDataAdapter to
insert the new row into the destination DB. This appears to work fine "most
of the time"; however, the application will occasionaly hang on the
dataadapter.UPDATE. No error is given and the application does not respond
to an end request from the windows task manager (Windows XP) -- I have to end
the process.
Any ideas?

Mary

--
Message posted via http://www.dotnetmonster.com

Jan 6 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: bob | last post by:
Hi.. I'm making a OleDb connection to a access database.. I can fill the dataset fine and view the data, but when I add a new row and try to update the db I get this error. Any help would be...
2
by: Son Ha | last post by:
I want to copy some record from a Access database to another Access DB. My code as follow but not working. The destAdapter.Update() return 0 record affected. Tell me what's wrong in my code? ...
1
by: Bennett Haselton | last post by:
Suppose I add a new row to a table in a dataset, and then I use an OleDbDataAdapter to add that new row to a SQL Server database using OleDbDataAdapter.Update(), as in the following code: ...
9
by: joun | last post by:
Hi all, i'm using this code to insert records into an Access table from asp.net, using a stored procedure, called qry_InsertData: PARAMETERS Long, Long, Text(20), Long, DateTime; INSERT...
0
by: M. David Johnson | last post by:
I cannot get my OleDbDataAdapter to update my database table from my local dataset table. The Knowledge Base doesn't seem to help - see item 10 below. I have a Microsoft Access 2000 database...
1
by: RML | last post by:
Hi everyone, I am using VB.NET 2003 and an OleDBDataAdapter to update an Access table's DateTime field. The field's format is set to "General Date" (ie: 11/24/2004 8:00:00 AM). The problem is...
6
by: tom c | last post by:
I create 2 data OleDbDataAdapters, one with the wizard, and one in code. I know the adapter created in code is OK because I use it to fill a data table. However, when I try to use the same SQL...
2
by: explode | last post by:
I made nova oledbdataadapter select update insert and delete command and connection veza. dataset is Studenti1data, I made it by the new data source wizard,and made datagridview and bindingsource...
6
by: baldrick | last post by:
Hello, I am trying to plonk the entire contents of a dBase file into an Access table. I have scanned the dBase fields and created an empty Access table with the same field formats. I have...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.