PC Review


Reply
Thread Tools Rate Thread

Delete row that shouldn't be really used

 
 
Ronny
Guest
Posts: n/a
 
      19th Oct 2008
In my program logic I need to delete datarows from time to time but not to
actually update that data to the database(its only needed for the algorithm
calculations). On the other hand, in the same algorithm, I do need to insert
a real record.
I wonder if simply eliminate the assignment of UpadetCommand would be
enough, or is there any other way to do it?
Regards


 
Reply With Quote
 
 
 
 
Gregory A. Beamer \(Cowboy\) - MVP
Guest
Posts: n/a
 
      20th Oct 2008
Based on what you have stated, I would consider a different method of using
this value than storing it, as it sounds like it is just an intermediate
value.

I see nothing wrong with updating the same temp value over and over again as
long as you will not need multiple threads updating that value. This leads
to two possibilities, neither of which is pretty.

1. Value locked when you try to write and causing failure for that user

2. Value overwritten before user 1 is finished with it, giving him/her a
wrong calculation.

If I were you, I would consider moving a bit out of the drag and drop world
and creating either stored procs or functions that do the intermediate steps
rather than attempt to use the automagic update bits on your temporary
values.

If I am off base and misunderstand what you are saying, either ignore this
or post a clarification.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://feeds.feedburner.com/GregoryBeamer#

or just read it:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think outside the box! |
********************************************
"Ronny" <(E-Mail Removed)> wrote in message
news:Or$(E-Mail Removed)...
> In my program logic I need to delete datarows from time to time but not to
> actually update that data to the database(its only needed for the
> algorithm calculations). On the other hand, in the same algorithm, I do
> need to insert a real record.
> I wonder if simply eliminate the assignment of UpadetCommand would be
> enough, or is there any other way to do it?
> Regards
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Shouldn't have to ask but.. kirkm Microsoft Excel Programming 4 6th May 2009 03:51 AM
Should I OR Shouldn't I =?Utf-8?B?RG91Zw==?= Windows Vista General Discussion 9 2nd Oct 2006 03:21 PM
Record shouldn't appear =?Utf-8?B?QnJlbnQgRQ==?= Microsoft Access Forms 5 22nd Jul 2005 05:08 AM
YOU SHOULDN'T hugh jass Microsoft Word Document Management 0 3rd Mar 2005 07:36 PM
What shouldn't I delete? Crash Gordon Microsoft Frontpage 12 31st Jan 2004 04:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:08 PM.