ozlem writes "I am trying to use variable column name inside of cursor statement but it doesn't return column value.Any help is appreciated.Thanks.Declare @UserId as integerDeclare @bSpotFx as varchar(35)declare @sProductName as varchar(35)declare @ssql as varchar(255) declare @i as integerselect @i=1declare cursorproduct CursorForselect productname from product_tblopen cursorproduct Fetch next from cursorproductinto @sproductnamewhile (@@fetch_status <> -1)begin Declare cursorprofile Cursor For select userid,('+ @sproductName +') from userprofile_tbl where USERID>0 OPEN cursorProfile FETCH NEXT from cursorprofile Into @userid,@bSpotFx WHILE (@@fetch_status <> -1) BEGIN print @i print @userid print @bspotfx /*Insert into UserProduct_tbl values(@i,@userid,@bspotfx)*/ FETCH NEXT from cursorprofile Into @userid,@bSpotFx END close cursorprofile deallocate cursorprofilefetch next from cursorproductinto @sproductnameselect @i=@i+1endclose cursorproduct"