Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 how to turn off "Free_Result" in SQL?

Author  Topic 

SQLIsTheDevil
Posting Yak Master

177 Posts

Posted - 2008-03-27 : 12:06:29
I'm using PHP, and I understand it has MSSQL extensions for various tasks. Is there a way to turn off Free_Result just for one query? Does there exist a flag in mssql that can temporarily suspend destroying of the result? Normally, after a database pointer exhausts the result query, it'll get destroyed because there's it's finished processing all rows. I'd like to suspend this action for one query. Is there a way to accomplish this, either using php sql extensions or within the sql query itself?

thank you.

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2008-03-27 : 13:55:11
well i have no idea how php handles database stuff, but doesn't it have something comparable to a dataset or recordset that you can put your data in?

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
SSMS Add-in that does a few things: www.ssmstoolspack.com
Go to Top of Page

SQLIsTheDevil
Posting Yak Master

177 Posts

Posted - 2008-03-27 : 14:18:51
it does not have to be in php. figured since there are numerous flags in SQL Server, perhaps there's one that prevents the query result from being destroyed after the database pointer has exhausted it.
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2008-03-27 : 14:22:17
emm... not that i know of... because sql server sends data to it's output stream... if it would keep data there then other queries would have to wait.

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
SSMS Add-in that does a few things: www.ssmstoolspack.com
Go to Top of Page

SQLIsTheDevil
Posting Yak Master

177 Posts

Posted - 2008-03-27 : 15:01:32
Well, you would know. Since you don't, I assume there isn't a functionality built-in for SQL Server. It's probably customary to handle such things in php.
Go to Top of Page
   

- Advertisement -