>I need to pass a column number to an SP and get the value of that column from a cursor. Currently I have the following;
I would expect that this requirement would create very fragile code. your application is not depending on the sequence of columns in a table. Is there some other solution to your problem?
-Mike