![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I wanted to know if this is possible and if so, how do I do it. Say, I have a query "SELECT * FROM Table WHERE Column="some_value". This executes on a very large data set and I would like to return the results as they query executes rather than wait for the whole query to execute. Basically, I want to get the results as they are prepared by the database. Any way to do this? Regards, San |
#3
| |||
| |||
|
|
I wanted to know if this is possible and if so, how do I do it. Say, I have a query "SELECT * FROM Table WHERE Column="some_value". This executes on a very large data set and I would like to return the results as they query executes rather than wait for the whole query to execute. Basically, I want to get the results as they are prepared by the database. Any way to do this? |
#4
| |||
| |||
|
|
Hi, I wanted to know if this is possible and if so, how do I do it. Say, I have a query "SELECT * FROM Table WHERE Column="some_value". This executes on a very large data set and I would like to return the results as they query executes rather than wait for the whole query to execute. Basically, I want to get the results as they are prepared by the database. Any way to do this? Regards, San |
#5
| |||
| |||
|
|
Hi, I wanted to know if this is possible and if so, how do I do it. Say, I have a query "SELECT * FROM Table WHERE Column="some_value". This executes on a very large data set and I would like to return the results as they query executes rather than wait for the whole query to execute. Basically, I want to get the results as they are prepared by the database. Any way to do this? Regards, San |
#6
| |||
| |||
|
|
"san" <sans11 (AT) hotmail (DOT) com> wrote in message news:8e29a54a.0309242021.1b3d4cd4 (AT) posting (DOT) google.com... Hi, I wanted to know if this is possible and if so, how do I do it. Say, I have a query "SELECT * FROM Table WHERE Column="some_value". This executes on a very large data set and I would like to return the results as they query executes rather than wait for the whole query to execute. Basically, I want to get the results as they are prepared by the database. Any way to do this? Regards, San Use a CURSOR methodology which reads each or a group of the input rows one at a time, and if some value is detected, writes the results to a table. Periodically query the table for updates. But it is slower. Much slower. Is this a one-off task, or is it to be queued as a repetitive cyclic task? |
#7
| |||
| |||
|
|
san (sans11 (AT) hotmail (DOT) com) writes: I wanted to know if this is possible and if so, how do I do it. Say, I have a query "SELECT * FROM Table WHERE Column="some_value". This executes on a very large data set and I would like to return the results as they query executes rather than wait for the whole query to execute. Basically, I want to get the results as they are prepared by the database. Any way to do this? Since you cross-posted this to comp.databases.theory, I'm uncertain whether you actually use MS SQL Server. In any case, this is engine dependent. If you use MS SQL Server, you can achieve this without any special thrills. It depends on your context, though. If you run the query from Query Analyzer, you should have set output to text to see the rows coming in. Results to grid and you will have to wait until all is done. If you connect from ADO, you need to use a server-side forward-only cursor. |
#8
| |||
| |||
|
|
My question is: Are the results of the query returned as they are processed? That is, as the database engine constructs the result it returns them (without waiting for the rest of the results to be generated)? |
#9
| |||
| |||
|
|
"mountain man" <hobbit (AT) southern_seaweed (DOT) com.op> wrote "san" <sans11 (AT) hotmail (DOT) com> wrote in message news:8e29a54a.0309242021.1b3d4cd4 (AT) posting (DOT) google.com... Hi, I wanted to know if this is possible and if so, how do I do it. Say, I have a query "SELECT * FROM Table WHERE Column="some_value". This executes on a very large data set and I would like to return the results as they query executes rather than wait for the whole query to execute. Basically, I want to get the results as they are prepared by the database. Any way to do this? Regards, San Use a CURSOR methodology which reads each or a group of the input rows one at a time, and if some value is detected, writes the results to a table. Periodically query the table for updates. But it is slower. Much slower. Is this a one-off task, or is it to be queued as a repetitive cyclic task? Hi, My question is: Are the results of the query returned as they are processed? That is, as the database engine constructs the result it returns them (without waiting for the rest of the results to be generated)? |
![]() |
| Thread Tools | |
| Display Modes | |
| |