how to find index of a row in sql server?

Posted by NoviceToDotNet on Stack Overflow See other posts from Stack Overflow or by NoviceToDotNet
Published on 2011-01-09T07:44:11Z Indexed on 2011/01/09 7:53 UTC
Read the original article Hit count: 301

Filed under:
|

How can i fetch column names from a tale on index basis, like i want to make a tables whose column name should be the name of last column fields of a result set of a query, but those result sets last columns value may be different at different execution time, so i want to know how can i fetch those index value of that last column to make a temp table with column name of those last columns value of a result set. Is there any way/function in sql server to dynamically form that?

© Stack Overflow or respective owner

Related posts about sql

Related posts about sql-server