br/>177
convert(nchar(20),ltrim(isnull(@sample,' '))) as sample,' ' comment from #t where tablename=@tbl and fieldname=@fld
178
179
end
180
181
fetch next from read_cursor into @tbl,@fld
182
183
end
184
185
186
187
close read_cursor
188
189
deallocate read_cursor
190
191