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
Describe triggers features and limitations?
List out a number of the wants to setup a SQL Server failover cluster?
How do I view a trc file?
Can coalesce return null?
What is a periodical index?
What are the difference between “where” and “having” clause in sql server?
How will you make an attribute not process? : sql server analysis services, ssas
Explain query editor regions
What are distributed partitioned views?
How does a profiler work?
Explain a join?
what are the three command line utilities and what are their primary functions?
What are the default system databases in sql server 2000?
How to change parameter value inside the report?
How you can add messages to the nt event log from within a stored procedure?