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 |
cheer
Starting Member
1 Post |
Posted - 2009-03-15 : 20:57:38
|
Below is my SQL under a store proceduredeclare @ProcessName varchar(30), @SQL varchar(1000)declare ProductionProcess_Cursor cursor for select ProcessName from RFQ_ProcessPrice order by ProcessSequenceopen ProductionProcess_Cursorfetch next from ProductionProcess_Cursor into @ProcessNamewhile @@FETCH_STATUS = 0begin select @SQL = @SQL + '[' + @ProcessName + ']' fetch next from ProductionProcess_Cursor into @ProcessNameendprint @SQLclose ProductionProcess_Cursordeallocate ProductionProcess_CursorThere isn't any output at the print @SQL. Anyone can advise what is wrong and how to correct |
|
sunitabeck
Master Smack Fu Yak Hacker
5155 Posts |
|
|
|
|