Click here to Skip to main content
15,910,118 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionMS access two connections simultaneously..... Pin
greendragons7-Aug-09 2:11
greendragons7-Aug-09 2:11 
AnswerRe: MS access two connections simultaneously..... Pin
Mike Ellison7-Aug-09 2:58
Mike Ellison7-Aug-09 2:58 
GeneralRe: MS access two connections simultaneously..... Pin
greendragons7-Aug-09 3:21
greendragons7-Aug-09 3:21 
GeneralRe: MS access two connections simultaneously..... Pin
Mike Ellison7-Aug-09 6:10
Mike Ellison7-Aug-09 6:10 
GeneralRe: MS access two connections simultaneously..... Pin
greendragons7-Aug-09 7:26
greendragons7-Aug-09 7:26 
AnswerRe: MS access two connections simultaneously..... Pin
Arindam Sinha7-Aug-09 3:00
Arindam Sinha7-Aug-09 3:00 
GeneralRe: MS access two connections simultaneously..... Pin
greendragons7-Aug-09 3:11
greendragons7-Aug-09 3:11 
GeneralRe: MS access two connections simultaneously..... Pin
Arindam Sinha7-Aug-09 3:30
Arindam Sinha7-Aug-09 3:30 
First point, you are using a datareader which should be used for reading the data in forward only manner.
Second point, data reader is always connected mode and you are deleting from the same table at the same time increasing the complexity unneccessaruiy.

Anyway, properly you can do the same thing.
Have a single connection. Using the same select command populate a DataSet. In that DataTable, loop through each row (each row is a friend) and fire the delete the command (here also you can use the same connection).

Keep me posted if you need any help. Smile | :)

Regards,
Arindam Sinha
MyBlog - http://arindamsinha.wordpress.com/
Please give your feedback on this answer.

AnswerRe: MS access two connections simultaneously..... Pin
Vimalsoft(Pty) Ltd7-Aug-09 3:09
professionalVimalsoft(Pty) Ltd7-Aug-09 3:09 
GeneralRe: MS access two connections simultaneously..... Pin
greendragons7-Aug-09 3:16
greendragons7-Aug-09 3:16 
GeneralRe: MS access two connections simultaneously..... Pin
Vimalsoft(Pty) Ltd7-Aug-09 3:18
professionalVimalsoft(Pty) Ltd7-Aug-09 3:18 
GeneralRe: MS access two connections simultaneously..... Pin
greendragons7-Aug-09 3:24
greendragons7-Aug-09 3:24 
GeneralRe: MS access two connections simultaneously..... Pin
Vimalsoft(Pty) Ltd7-Aug-09 3:29
professionalVimalsoft(Pty) Ltd7-Aug-09 3:29 
GeneralRe: MS access two connections simultaneously..... Pin
greendragons7-Aug-09 3:34
greendragons7-Aug-09 3:34 
GeneralRe: MS access two connections simultaneously..... Pin
Vimalsoft(Pty) Ltd7-Aug-09 3:38
professionalVimalsoft(Pty) Ltd7-Aug-09 3:38 
GeneralRe: MS access two connections simultaneously..... Pin
greendragons7-Aug-09 4:01
greendragons7-Aug-09 4:01 
GeneralRe: MS access two connections simultaneously..... Pin
Vimalsoft(Pty) Ltd7-Aug-09 4:11
professionalVimalsoft(Pty) Ltd7-Aug-09 4:11 
GeneralRe: MS access two connections simultaneously..... Pin
greendragons7-Aug-09 4:20
greendragons7-Aug-09 4:20 
GeneralRe: MS access two connections simultaneously..... Pin
Vimalsoft(Pty) Ltd7-Aug-09 4:23
professionalVimalsoft(Pty) Ltd7-Aug-09 4:23 
GeneralRe: MS access two connections simultaneously..... Pin
greendragons7-Aug-09 4:27
greendragons7-Aug-09 4:27 
GeneralRe: MS access two connections simultaneously..... Pin
Vimalsoft(Pty) Ltd7-Aug-09 4:30
professionalVimalsoft(Pty) Ltd7-Aug-09 4:30 
GeneralRe: MS access two connections simultaneously..... Pin
greendragons7-Aug-09 4:34
greendragons7-Aug-09 4:34 
GeneralRe: MS access two connections simultaneously..... Pin
Vimalsoft(Pty) Ltd7-Aug-09 4:36
professionalVimalsoft(Pty) Ltd7-Aug-09 4:36 
GeneralRe: MS access two connections simultaneously..... Pin
greendragons7-Aug-09 4:38
greendragons7-Aug-09 4:38 
GeneralRe: MS access two connections simultaneously..... Pin
Vimalsoft(Pty) Ltd7-Aug-09 4:39
professionalVimalsoft(Pty) Ltd7-Aug-09 4:39 

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.