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.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2005-10-21 : 07:54:03
|
| Bill writes "Good day to you!I have a problem with some code written by someone else that I do not understand. Basically, its this... /* Open cursor to loop through the dataset To update the last patient DNA codes */ Declare crsDSPiMSWaitingTimes Cursor ForSelect PatientID, ReferralID, DateSeen, DateOfReferral, DateReferralClosed From DSPiMSWaitingTimes OPEN crsDSPiMSWaitingTimes FETCH NEXT FROM crsDSPiMSWaitingTimes INTO @PatientID, @ReferralID, @DateSeen, @DateOfReferral, @DateClosedI'm sorry for being a numbnut but I just dont understand what is going on here. Your help will be MOST appreciated!!Thanks alot guys" |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2005-10-21 : 07:58:07
|
| It is selecting the values from DSPiMSWaitingTimes table assigning to variables. It seems that the code is incomplete. Post the full codeMadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|