I Created two Stored Procedure one for reading Datarows and One for deleting, but I was wondering If I can delete records while reading them and also if its best practice ?
e.g.
while (rdr.Read())
{
If(rdr[abc].ToString() != Null)
{Maybe delete it ?}
}
My question is, Can I delete a row while reading it ? 🙂
Basically, sql server do not allow you to execute two store procedures simultaneously. I think you can refer to link How can I run stored procedures in parallel