> Hi Auke,
> 
> I think this would have worked but I'm getting a CURSOR error:
> 
> 'VARCHAR' is not a recognized CURSOR option. 
> 
> I've come across this error a few times before and don't really 
> understand it and the way to fix it.
> 
> Any ideas.

I think only CURSORs are allowed names without a leading '@'. Most likely you 
are declaring your variables like this:

DECLARE DeletedAreaName VARCHAR(50);

instead of 

DECLARE @DeletedAreaName VARCHAR(50);

Because (I think) you are declaring the variable without the starting '@', 
MS-SQL assumes it's a cursor, and therefore complains about the VARCHAR that 
follows it.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244625
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to