Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

SQL Cursors

Posted on 2011-09-21
2
Medium Priority
?
265 Views
Last Modified: 2012-05-12
What is more effective than a cursors?  Given their (cursors) common use in stored procs?
0
Comment
Question by:TimSweet220
2 Comments
 
LVL 18

Expert Comment

by:deighton
ID: 36574805
for optimisation, it is better to use set based SQL if you can
0
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 2000 total points
ID: 36575221
>>Given their (cursors) common use in stored procs?<<
It is rare that CURSORs are used in Stored Procedures and then usually in older code, where the developer migrated from MS Access and did not know any better.
 
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
Windocks is an independent port of Docker's open source to Windows.   This article introduces the use of SQL Server in containers, with integrated support of SQL Server database cloning.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question