Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Clearing Cursors
Message
From
11/06/2008 14:33:57
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
Scripting
Title:
Clearing Cursors
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01323202
Message ID:
01323202
Views:
61
This is the only thing other than a declare statement in this particular script, but each time I run it I get the error listed at the bottom.
	Declare ChartID cursor
		Forward_Only
	For
	Select Distinct 
		(P.ChartID),
		'0' AS Processed
		From NTSERVER.IMPACTMD.dbo.Patients P
			Inner Join NTSERVER.IMPACTMD.dbo.Doc_Header H
				On H.PatientID = P.PatientID
Msg 16915, Level 16, State 1, Line 43
A cursor with the name 'ChartID' already exists.
Next
Reply
Map
View

Click here to load this message in the networking platform