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 select top 5 coloumn from a table without using
coloumn name

Answer Posted / aashish arora

SELECT top 5 * from information_schema.columns where
table_name = 'varTableName'

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which data types generate inaccurate results if used with an = or <> comparison in a where clause of a sql statement?

1010


What is a virtual table in sql?

959


What are the types of sql server?

1007


Explain how does the report manager work in ssrs?

915


Will count(column) include columns with null values in its count?

1049


You have modified 100 store procedures and want to replicate these changes from development to prodution, and production can have users using the Server/DB, how would you replicate without causing issues?

2108


How to Check if table exists in sql server?

1087


What is an indexed view?

925


What is the use of sql profiler in sql server 2012?

853


What is save transaction and save point?

1139


Explain what are the database objects? : SQL Server Architecture

1025


Is it possible for a stored procedure to call itself or recursive stored procedure? How many levels of sp nesting are possible?

853


When a primary key constraint is included in a table, what other constraints does this imply?

950


What is data source object?

967


Which are the third-party tools used in sql server and why would you use them?

860