execute ('Declare curCol Cursor for select distinct '+@showCol+' from '+@tableName+' for read only') -execute ('Declare curCol Cursor for select distexecute ('Declare curCol Cursor for select distinct '+@showCol+' from '+@tableName+' for read only') -execute ('Declare curCol Cursor for select dist