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

Where the sql logs gets stored?

977


Is there any difference between primary key and unique with the not null condition?

941


What is the stored procedure?

1001


what are different types of backups available in sql server? Given a particular scenario, how would you go about choosing a backup plan? : Sql server database administration

917


What are the parts of a function?

929


What is the maximum size of a row in sql server?

961


Why does a sql statement work correctly outside of a user-defined function, but incorrectly inside it?

878


In what version of sql server were synonyms released?

936


What are the restraints imposed on the table design by a merge replication?

1031


Explain activity monitors

1067


What is the process of normalising?

993


What is amo? : sql server analysis services, ssas

1085


How do indexes help, types?

955


What is wrong with sql server client libarary dll, ntwdblib.dll?

1033


What is replace and stuff function in sql server?

1057