--遍历模板表行   
    set @SQLString = N'DECLARE cursor_FRModalRows cursor local for SELECT '+@curModalLineFieldName+' FROM '+@curFRModalTableName
---------
    exec sp_executesql @SQLString
    OPEN cursor_FRModalRows  --error here
    ........
    
    我想遍历一个表里的数据,但这个表(@curFRModalTableName)也是动态的,
    用上述语句只能在局部创建游标, 但却不能在外部打开,
    下边执行的SQL语句是很庞大,不能都放到动态N''语句里去的.
    有何好的解决方法?