Click here to Skip to main content
15,886,873 members
Home / Discussions / Database
   

Database

 
GeneralRe: Create an Access Database at runtime Pin
Santanu Lahiri29-Apr-04 10:24
Santanu Lahiri29-Apr-04 10:24 
GeneralRe: Create an Access Database at runtime Pin
Santanu Lahiri30-Apr-04 5:55
Santanu Lahiri30-Apr-04 5:55 
GeneralSage Accounting Version 10 Pin
Kryptos Sol29-Apr-04 4:43
Kryptos Sol29-Apr-04 4:43 
Generalexec two stored procedure in a main stored procedure Pin
manasrahfantom29-Apr-04 2:27
manasrahfantom29-Apr-04 2:27 
GeneralRe: exec two stored procedure in a main stored procedure Pin
Jeff Varszegi29-Apr-04 3:11
professionalJeff Varszegi29-Apr-04 3:11 
GeneralRe: exec two stored procedure in a main stored procedure Pin
manasrahfantom30-Apr-04 21:33
manasrahfantom30-Apr-04 21:33 
GeneralRe: exec two stored procedure in a main stored procedure Pin
Jeff Varszegi1-May-04 6:49
professionalJeff Varszegi1-May-04 6:49 
GeneralADO.NET Deletion from SQL DB problem. Pin
Member 105947128-Apr-04 19:52
Member 105947128-Apr-04 19:52 
I am using a dateset.

Heres the problem:
Lets assume theres a table T, with one row in it. I populate my dataset by using Fill().

In my software I now delete the row (from the dataset only).

If I use the Update() with the dataset, the row will be removed from the DB. This is fine.

But what happens if I do this:
1) Call Fill() to populate the dataset.
2) Delete the row from the dataset.
3) Add a new row to the dataset.
4) Delete this new row again.

The problem is that there will now be two rows in the dataset that is flagged to be deleted when Update() is called. But only one of these will be in the database!

If I call Update() now, the system will try to delete both from the DB, but since only one of them is available in the DB to delete, a Concurrency exception will be thrown (since no rows will be affected when the system tries to delete the nonexistant row).

What is the best practice in these kind of situations?

Thanks for your time.

GeneralTransferring Data Pin
ibok2328-Apr-04 5:40
ibok2328-Apr-04 5:40 
Generalcheck login exists Pin
Dpriya28-Apr-04 2:50
Dpriya28-Apr-04 2:50 
GeneralRe: check login exists Pin
Mazdak28-Apr-04 3:47
Mazdak28-Apr-04 3:47 
GeneralRe: check login exists Pin
Jeff Martin28-Apr-04 5:33
Jeff Martin28-Apr-04 5:33 
GeneralRe: check login exists Pin
Jeff Martin28-Apr-04 5:32
Jeff Martin28-Apr-04 5:32 
Generalcheck database exists Pin
Dpriya27-Apr-04 2:56
Dpriya27-Apr-04 2:56 
GeneralRe: check database exists Pin
Jeff Varszegi27-Apr-04 7:51
professionalJeff Varszegi27-Apr-04 7:51 
GeneralRe: check database exists Pin
Jeff Martin28-Apr-04 5:35
Jeff Martin28-Apr-04 5:35 
GeneralRe: check database exists Pin
Jeff Varszegi28-Apr-04 7:08
professionalJeff Varszegi28-Apr-04 7:08 
GeneralRe: check database exists Pin
Jeff Martin29-Apr-04 9:02
Jeff Martin29-Apr-04 9:02 
GeneralRe: check database exists Pin
Jeff Varszegi29-Apr-04 9:38
professionalJeff Varszegi29-Apr-04 9:38 
GeneralInstalling ole db provider for microsoft project without installing microsoft project Pin
vinay_mat26-Apr-04 20:39
vinay_mat26-Apr-04 20:39 
GeneralLinked server from SQL Server 2000 to Sybase 12 Pin
Janya26-Apr-04 14:30
Janya26-Apr-04 14:30 
QuestionHow to create linked tables using ADOX? Pin
Santanu Lahiri26-Apr-04 12:06
Santanu Lahiri26-Apr-04 12:06 
AnswerFollowup: How to create linked tables using ADOX? Pin
Santanu Lahiri29-Apr-04 10:13
Santanu Lahiri29-Apr-04 10:13 
GeneralRestore database Pin
tmcafee26-Apr-04 8:40
tmcafee26-Apr-04 8:40 
GeneralRe: Restore database Pin
Mazdak26-Apr-04 20:52
Mazdak26-Apr-04 20:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.