How to display n-1 columns from n number of columns, from a
single table in MS SQL server 2005?
Answer Posted / k m rajesh
Declare @ColumnName Varchar(50)
Select @ColumnName = Name From syscolumns Where id = object_id(Table_Name) and ColID = (Select Count(name)-1 from SysColumns Where id = object_id(Table_Name))
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What causes index fragmentation?
What are the types of indexing?
What method is used by the Command classes to execute SQL statements that return single values?
What are the Advantages of using CTE in sql server?
What purpose does the model database server?
What is ms sql server service broker?
What are the advantages of paper records?
Explain in details security in SQL azure?
What programming language would you use to create embedded functions in ssrs?
Explain ranking functions?
How to list all objects in a given schema?
What is identity?
what are the three command line utilities and what are their primary functions?
Explain how to use linked server?
Explain about nested stored procedure?