Click here to Skip to main content
15,914,014 members
Home / Discussions / Database
   

Database

 
GeneralRe: Getting the row count from a SQLDataReader Pin
Paul Watson21-Oct-02 22:17
sitebuilderPaul Watson21-Oct-02 22:17 
GeneralRe: Getting the row count from a SQLDataReader Pin
Morten Abrahamsen22-Oct-02 1:43
Morten Abrahamsen22-Oct-02 1:43 
GeneralRe: Getting the row count from a SQLDataReader Pin
Daniel Turini22-Oct-02 1:45
Daniel Turini22-Oct-02 1:45 
GeneralRe: Getting the row count from a SQLDataReader Pin
Morten Abrahamsen22-Oct-02 1:58
Morten Abrahamsen22-Oct-02 1:58 
GeneralRe: Getting the row count from a SQLDataReader Pin
Daniel Turini22-Oct-02 2:14
Daniel Turini22-Oct-02 2:14 
GeneralRe: Getting the row count from a SQLDataReader Pin
Morten Abrahamsen22-Oct-02 2:23
Morten Abrahamsen22-Oct-02 2:23 
GeneralRe: Getting the row count from a SQLDataReader Pin
Daniel Turini22-Oct-02 2:26
Daniel Turini22-Oct-02 2:26 
GeneralRe: Getting the row count from a SQLDataReader Pin
Morten Abrahamsen22-Oct-02 2:40
Morten Abrahamsen22-Oct-02 2:40 
Hehe... been there Wink | ;)

However, this is not an issue dependant on the .NET SQL Client layer.
It's a question of how the SQL Server handles standard query processing.

If you issue a select query with a 100.000 record resultset, it would be returned as a datastream (TDS) to the client.

I would think that if there is no isolation (tx) there would just be a read lock on the current row (or index key) and not on the table, so records could easily be added or deleted. So if I'm correct the SQL Server would just read the data page by page and never precalculate the total amount and lock it. Hence the "imagined resultset" could be radically (add/delete) changed during the processing (which could take time), and a prior Count would be useless.

Just my 2c Smile | :)

GeneralRe: Getting the row count from a SQLDataReader Pin
Daniel Turini22-Oct-02 2:51
Daniel Turini22-Oct-02 2:51 
GeneralRe: Getting the row count from a SQLDataReader Pin
Morten Abrahamsen22-Oct-02 8:19
Morten Abrahamsen22-Oct-02 8:19 
GeneralProblem with Composite Attribute in access Pin
tongc20-Oct-02 20:56
tongc20-Oct-02 20:56 
GeneralRetrieving Exchange Information Pin
Anonymous20-Oct-02 18:39
Anonymous20-Oct-02 18:39 
GeneralRe: Retrieving Exchange Information Pin
Morten Abrahamsen22-Oct-02 1:59
Morten Abrahamsen22-Oct-02 1:59 
QuestionCan I query an XML file with SQL? Pin
Marc Clifton20-Oct-02 14:35
mvaMarc Clifton20-Oct-02 14:35 
AnswerRe: Can I query an XML file with SQL? Pin
Nick Parker20-Oct-02 16:21
protectorNick Parker20-Oct-02 16:21 
AnswerRe: Can I query an XML file with SQL? Pin
Daniel Turini20-Oct-02 22:35
Daniel Turini20-Oct-02 22:35 
GeneralRe: Can I query an XML file with SQL? Pin
Nick Parker21-Oct-02 1:50
protectorNick Parker21-Oct-02 1:50 
GeneralCreate table Pin
Mazdak20-Oct-02 9:17
Mazdak20-Oct-02 9:17 
GeneralRe: Create table Pin
Vagif Abilov20-Oct-02 9:21
professionalVagif Abilov20-Oct-02 9:21 
GeneralRe: Create table Pin
David Salter21-Oct-02 10:04
David Salter21-Oct-02 10:04 
GeneralRe: $60 to the PayPal account of the first person who... Pin
Daniel Turini18-Oct-02 22:34
Daniel Turini18-Oct-02 22:34 
GeneralRe: Winner Pin
dougieb20-Oct-02 18:25
dougieb20-Oct-02 18:25 
GeneralRe: $60 to the PayPal account of the first person who... Pin
Daniel Turini19-Oct-02 8:29
Daniel Turini19-Oct-02 8:29 
GeneralRe: $60 to the PayPal account of the first person who... Pin
Vagif Abilov20-Oct-02 9:27
professionalVagif Abilov20-Oct-02 9:27 
GeneralRegistering new SQL Server Pin
Robby18-Oct-02 3:57
Robby18-Oct-02 3:57 

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.