Unix Technical Forum

time out in fast updation of sql server database

This is a discussion on time out in fast updation of sql server database within the MS SQL ODBC forums, part of the Microsoft SQL Server category; --> Hi all, Myself using Sql server through mfc odbc , CDatabase class and a class derived from Crecordset class ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > MS SQL ODBC

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 08:46 PM
=?Utf-8?B?YW1pdCBiaGFyYWR3YWo=?=
 
Posts: n/a
Default time out in fast updation of sql server database

Hi all,
Myself using Sql server through mfc odbc , CDatabase class and a class
derived

from Crecordset class ..

I use RFX_Text of CMyRecordset:oFieldExchange .
Now i have to update a particular field some 4000 times per min.

I did something like that .

CDatabase objdatabase;
objdatabase.openex(connection strign);//opens successfully

MyRecordSet objMyrecordset(&objDatabase) ;//object of a class derived from
CRecordset

In a function ..(which get called some 4000 time per minute)

{
objMyrecordset.Open(CRecordset::dynaset ,strOpenRecordSet);//seleting one
record at one time
......
do something with field value

objMyrecordset.Edit()
objMyrecordset.m_strField = Somenewval ;
objMyrecordset.Update();

objMyrecordset.close();

}

now for around 30 mts this works fine but after that time out (exception)
starts comming ,

and update stars taking much more time than before .
My database only has 1500 records .

Please help wht to do???
--
amit bharadwaj
VC++(ATL,MFC) developer
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:44 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com