Click here to Skip to main content
15,907,687 members
Home / Discussions / Database
   

Database

 
AnswerRe: Executing SQL Script File Pin
Colin Angus Mackay5-Oct-05 21:59
Colin Angus Mackay5-Oct-05 21:59 
QuestionHow to call stored procedure from update statement Pin
iluha5-Oct-05 15:54
iluha5-Oct-05 15:54 
AnswerRe: How to call stored procedure from update statement (edit) Pin
Nic Rowan6-Oct-05 1:55
Nic Rowan6-Oct-05 1:55 
QuestionImport/Export in MS Access Pin
suzie1005-Oct-05 8:38
suzie1005-Oct-05 8:38 
QuestionHelp with Cursors in Stored Procedures Pin
jszpila5-Oct-05 6:33
jszpila5-Oct-05 6:33 
AnswerRe: Help with Cursors in Stored Procedures [long reply] Pin
Colin Angus Mackay5-Oct-05 11:12
Colin Angus Mackay5-Oct-05 11:12 
AnswerRe: Help with Cursors in Stored Procedures [long reply] Pin
jszpila5-Oct-05 11:54
jszpila5-Oct-05 11:54 
GeneralRe: Help with Cursors in Stored Procedures [long reply] Pin
Colin Angus Mackay5-Oct-05 12:16
Colin Angus Mackay5-Oct-05 12:16 
jszpila wrote:
I was a hesitant to use a cursor because I've heard bad things about them

Yes, I would say that cursors are useful in a small number of situations. It is something that once learned is a difficult habit to get out of because people are used to procedural approaches that are used in more traditional languages such as C/C++/C#/VB/Pascal/Java and so on. SQL is a set-based language and so it operates on sets of data more efficiently and if you can keep it that way then all the better.

Now that you know how to use cursors, my advice is to put that knowledge away and not touch it unless you really must use it as there is no other option. Just about every resource I've read on the subject has said how awful and inefficient they are - and I don't mean gaining a few milliseconds here or there. I mean stored procedures going from taking hours with cursors to a few seconds to do the same thing without.

Like I said, I think your problem can be solved without using cursors - but it would probably take a little bit longer to think through. However, the benefits at the other end are so much better.


My: Blog | Photos

"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucious


QuestionLooking for the right forum Pin
Michael Hulthin4-Oct-05 21:42
Michael Hulthin4-Oct-05 21:42 
QuestionHow to launch access database and view reports Pin
dw19284-Oct-05 20:36
dw19284-Oct-05 20:36 
Questionadd stored procedures .sql to database Pin
theStorminMormon4-Oct-05 10:32
theStorminMormon4-Oct-05 10:32 
AnswerRe: add stored procedures .sql to database Pin
Colin Angus Mackay4-Oct-05 12:44
Colin Angus Mackay4-Oct-05 12:44 
GeneralRe: add stored procedures .sql to database Pin
theStorminMormon5-Oct-05 2:57
theStorminMormon5-Oct-05 2:57 
GeneralRe: add stored procedures .sql to database Pin
Scott Serl6-Oct-05 11:14
Scott Serl6-Oct-05 11:14 
AnswerRe: add stored procedures .sql to database Pin
Luis Alonso Ramos6-Oct-05 18:45
Luis Alonso Ramos6-Oct-05 18:45 
QuestionUsing SqlConnection without Time out Pin
thainam3-Oct-05 23:13
thainam3-Oct-05 23:13 
AnswerRe: Using SqlConnection without Time out Pin
Colin Angus Mackay4-Oct-05 1:19
Colin Angus Mackay4-Oct-05 1:19 
QuestionSQL SERVER Pin
Tran Ngoc Minh3-Oct-05 18:15
Tran Ngoc Minh3-Oct-05 18:15 
AnswerRe: SQL SERVER Pin
Colin Angus Mackay4-Oct-05 1:25
Colin Angus Mackay4-Oct-05 1:25 
QuestionStore procedure access in c++ Pin
Anonymous3-Oct-05 17:14
Anonymous3-Oct-05 17:14 
QuestionMultiple Selects in SP Pin
Russell Jones3-Oct-05 6:05
Russell Jones3-Oct-05 6:05 
AnswerRe: Multiple Selects in SP Pin
afronaut3-Oct-05 6:45
afronaut3-Oct-05 6:45 
GeneralRe: Multiple Selects in SP Pin
Anonymous3-Oct-05 6:54
Anonymous3-Oct-05 6:54 
GeneralRe: Multiple Selects in SP Pin
Michael Potter3-Oct-05 11:57
Michael Potter3-Oct-05 11:57 
QuestionQuery question Pin
afronaut3-Oct-05 5:25
afronaut3-Oct-05 5:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.