SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Cursor optimization


Cursor optimization

Author
Message
Hugo Kornelis
Hugo Kornelis
SSCoach
SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)

Group: General Forum Members
Points: 18669 Visits: 12426
davidthegray (7/9/2008)
Ok, Hugo, I followed your suggestion.

If anybody think this feature would be useful, you can vote here: http://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=355519


Thanks, David. You have my vote.

(BTW, did you remember to vote on it yourself?)


Hugo Kornelis, SQL Server MVP
Visit my SQL Server blog: http://sqlblog.com/blogs/hugo_kornelis
Steve Jones
Steve Jones
SSC Guru
SSC Guru (144K reputation)SSC Guru (144K reputation)SSC Guru (144K reputation)SSC Guru (144K reputation)SSC Guru (144K reputation)SSC Guru (144K reputation)SSC Guru (144K reputation)SSC Guru (144K reputation)

Group: Administrators
Points: 144910 Visits: 19424
OK, points awarded back.

The question has also been changed to specify the cursor fitting in memory. Apologies for the delay. We had hay delivered yesterday (160 bales) and it started to rain, so work got interrupted so I could run move it into the barn.

The wish to add folders to SSMS is on the list somewhere at MS. I talked with them specifically about this and it's something the manageability team has been thinking about in future tools.

The QOtD now has a schedule system and an admin system, but I'm not sure if there's a way to get a group that can see them in advance. I'll ask the question.

Follow me on Twitter: @way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
davidthegray
davidthegray
SSC Veteran
SSC Veteran (242 reputation)SSC Veteran (242 reputation)SSC Veteran (242 reputation)SSC Veteran (242 reputation)SSC Veteran (242 reputation)SSC Veteran (242 reputation)SSC Veteran (242 reputation)SSC Veteran (242 reputation)

Group: General Forum Members
Points: 242 Visits: 130
Hugo Kornelis (7/9/2008)
davidthegray (7/9/2008)
Ok, Hugo, I followed your suggestion.

If anybody think this feature would be useful, you can vote here: http://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=355519


Thanks, David. You have my vote.

(BTW, did you remember to vote on it yourself?)


No, I didn't find it so honest to vote for myself. Anyway, I have already got the anser from MS:

Hi David, Thank you for your request to add folders. This has been a long standing request in the past - http://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=245943. We are considering ways to better organize information in a future release of SQL Server. I'm resolving this as a duplicate. Thank you

Actually I did a scan for the word "folders" before posting my suggestion. Something wrong with the MS search engine? w00t
Following the link you can find another post (#209340) for the same suggestion, with lot of duplicate reference. Not surprisingly, I'm not the only one longing for that feature!
magasvs
magasvs
SSCrazy
SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)

Group: General Forum Members
Points: 2367 Visits: 756
The question has a note about fitting cursor in memory. This is what BOL says about FAST _FORWARD cursors:
"The most dramatic improvement is seen when processing cursors with relatively small result sets that can be cached in the memory of an application. The fast forward-only cursor with autofetch enabled represents the most efficient method of getting a result set into an ODBC application..."

http://msdn.microsoft.com/en-us/library/ms187502.aspx

May be I overlooked something.Unsure
Hugo Kornelis
Hugo Kornelis
SSCoach
SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)

Group: General Forum Members
Points: 18669 Visits: 12426
SveG (7/11/2008)
May be I overlooked something.Unsure


Hi SveG,

I think you did.

That particular quote refers to "the fast forward-only cursor with autofetch enabled", which is a specific kind of client-side cursor (that uses similar optimizations techniques that the server-side T-SQL fast-forward cursor uses as well).


Hugo Kornelis, SQL Server MVP
Visit my SQL Server blog: http://sqlblog.com/blogs/hugo_kornelis
jts2013
jts2013
SSCommitted
SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)

Group: General Forum Members
Points: 1524 Visits: 5009
So the correct answer is "it depends" :-D
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search