{"id":763,"date":"2009-08-24T13:28:20","date_gmt":"2009-08-24T17:28:20","guid":{"rendered":"http:\/\/wehuberconsultingllc.com\/wordpress\/2009\/08\/24\/tips-tricks-and-advice-from-the-sql-server-query-processing-team-understanding-sql-server-fast_forward-server-cursors\/"},"modified":"2009-08-24T13:28:20","modified_gmt":"2009-08-24T17:28:20","slug":"tips-tricks-and-advice-from-the-sql-server-query-processing-team-understanding-sql-server-fast_forward-server-cursors","status":"publish","type":"post","link":"https:\/\/wehuberconsultingllc.com\/wordpress\/2009\/08\/24\/tips-tricks-and-advice-from-the-sql-server-query-processing-team-understanding-sql-server-fast_forward-server-cursors\/","title":{"rendered":"Tips, Tricks, and Advice from the SQL Server Query Processing Team : Understanding SQL Server Fast_Forward Server Cursors"},"content":{"rendered":"<p>Here\u00e2\u20ac\u2122s a big thank you to Marc for this post on Fast_Forward Cursors. I happened to be debugging a performance problem with a SQL2000 stored procedure today. We have a stored procedure we use to release back orders and it was timing out. When I looked at the execution plan, SQL was using the date index rather than our order status\/date index with the query.&#160; Since SQL was using the date index, it had to read every order to determine the order status. When I added the FAST_FORWARD parameter to the CURSOR, it used the order status index with the query and the I\/O cost dropped from 1119 down to .228. <\/p>\n<p><a href=\"http:\/\/blogs.msdn.com\/sqlqueryprocessing\/archive\/2009\/08\/12\/understanding-sql-server-fast-forward-server-cursors.aspx\">Tips, Tricks, and Advice from the SQL Server Query Processing Team : Understanding SQL Server Fast_Forward Server Cursors<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here\u00e2\u20ac\u2122s a big thank you to Marc for this post on Fast_Forward Cursors. I happened to be debugging a performance problem with a SQL2000 stored procedure today. We have a stored procedure we use to release back orders and it was timing out. When I looked at the execution plan, SQL was using the date &hellip; <a href=\"https:\/\/wehuberconsultingllc.com\/wordpress\/2009\/08\/24\/tips-tricks-and-advice-from-the-sql-server-query-processing-team-understanding-sql-server-fast_forward-server-cursors\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Tips, Tricks, and Advice from the SQL Server Query Processing Team : Understanding SQL Server Fast_Forward Server Cursors&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[58],"tags":[],"class_list":["post-763","post","type-post","status-publish","format-standard","hentry","category-sql"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4iN3d-cj","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wehuberconsultingllc.com\/wordpress\/wp-json\/wp\/v2\/posts\/763","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wehuberconsultingllc.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wehuberconsultingllc.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wehuberconsultingllc.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wehuberconsultingllc.com\/wordpress\/wp-json\/wp\/v2\/comments?post=763"}],"version-history":[{"count":0,"href":"https:\/\/wehuberconsultingllc.com\/wordpress\/wp-json\/wp\/v2\/posts\/763\/revisions"}],"wp:attachment":[{"href":"https:\/\/wehuberconsultingllc.com\/wordpress\/wp-json\/wp\/v2\/media?parent=763"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wehuberconsultingllc.com\/wordpress\/wp-json\/wp\/v2\/categories?post=763"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wehuberconsultingllc.com\/wordpress\/wp-json\/wp\/v2\/tags?post=763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}