I searched previous posts and the FAQ, but didn't see anything about this.
I have a table that is generated by a 3rd party software. The name of the second column is not static. It contains a date reference. For instance one time the column name may be FFEB07 and another time it may be FJAN1208.
I'd like to create a view so that I can report off of this table, but have a static name for the second column no matter what the 3rd party software decides to call it today.
I was wondering if there is a way to reference columns by an index number of some sort, so I could just call "Column(2)" each time without having to know it's name?
I'm using SQL Server 2008 R2.
Thanks for any help or point in the right direction.
I have a table that is generated by a 3rd party software. The name of the second column is not static. It contains a date reference. For instance one time the column name may be FFEB07 and another time it may be FJAN1208.
I'd like to create a view so that I can report off of this table, but have a static name for the second column no matter what the 3rd party software decides to call it today.
I was wondering if there is a way to reference columns by an index number of some sort, so I could just call "Column(2)" each time without having to know it's name?
I'm using SQL Server 2008 R2.
Thanks for any help or point in the right direction.