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
 General SQL Server Forums
 New to SQL Server Programming
 ERROR WHAT DOES IT MEAN

Author  Topic 

dtrivedi
Posting Yak Master

153 Posts

Posted - 2010-07-19 : 16:27:17
Posted - 07/19/2010 : 16:26:41
--------------------------------------------------------------------------------

i am getting this error
i dont know what it means

Must declare the scalar variable "@locations".

DECLARE @locations varchar(50), @email varchar(100)
declare t_loc
cursor for select locations,storeemail from #ezpayloc
open t_loc


fetch next from t_loc
into @locations, @email

when i run the fetch statement im getting the error

robvolk
Most Valuable Yak

15732 Posts

Posted - 2010-07-19 : 16:33:19
Please keep this in the original thread:

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=147494
Go to Top of Page
   

- Advertisement -