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.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Transact Help!!

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 For
Select PatientID,
ReferralID,
DateSeen,
DateOfReferral,
DateReferralClosed
From DSPiMSWaitingTimes

OPEN crsDSPiMSWaitingTimes

FETCH NEXT FROM crsDSPiMSWaitingTimes
INTO @PatientID,
@ReferralID,
@DateSeen,
@DateOfReferral,
@DateClosed

I'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 code

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -