Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How to drop an existing table?

1008


How to use group functions in the select clause in ms sql server?

1055


Does order by actually change the order of the data in the tables or does it just change the output?

1147


What is sql server used for?

1053


What is table join?

1119


What is normalization according to you and explain its different levels?

952


Explain activity monitors

1080


What are the advantages dts has over bcp?

1000


Which sql server table is used to hold the stored procedure script?

949


What is difference between temp table and cte?

1022


How to delete an existing database user?

1018


What purpose does the model database server?

1102


why would you use sql agent? : Sql server database administration

1216


Explain alternate key, candidate key and composite key in sql server?

916


What is the recovery model?

992