Possible Duplicate:
Is it possible to select sql server data using column ordinal position
Not sure if the title help, but i'm trying to create a general function and i was wondering if i could use a column position in my WHERE statements instead of a column name. So for example
SELECT * FROM table WHERE myID=1
would become something like this
SELECT * FROM table WHERE [0]=1
Does this make sense? is it doable? Thanks guys.
BTW - Using MSSQL 2005-2008