Not sure if there is an easier way in 2008 version.
USE [Database Name]
SELECT COLUMN_NAME,*
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = 'YourTableName' AND TABLE_SCHEMA='YourSchemaName'
More Related Contents:
- SQL where clause odd behavior [closed]
- How do I obtain a Query Execution Plan in SQL Server?
- How do I escape a single quote in SQL Server?
- Simple way to transpose columns and rows in SQL?
- Only inserting a row if it’s not already there
- Unpivot with column name
- Selecting data from two different servers in SQL Server
- Maximum size for a SQL Server Query? IN clause? Is there a Better Approach [duplicate]
- How to split a single column values to multiple column values?
- Using the result of an expression (e.g. Function call) in a stored procedure parameter list?
- Formatting Numbers by padding with leading zeros in SQL Server
- When no ‘Order by’ is specified, what order does a query choose for your record set?
- How do I create a step in my SQL Server Agent Job which will run my SSIS package?
- For Nvarchar(Max) I am only getting 4000 characters in TSQL?
- How do I create a foreign key in SQL Server?
- How do I group on continuous ranges
- join comma delimited data column
- Need to list all triggers in SQL Server database with table name and table’s schema
- Count based on condition in SQL Server
- Is it possible to perform multiple updates with a single UPDATE SQL statement?
- Incorrect syntax near the keyword ‘with’…previous statement must be terminated with a semicolon
- Best equivalent for IsInteger in SQL Server
- Syntax of for-loop in SQL Server
- How to correctly insert newline in nvarchar [duplicate]
- How do you copy a record in a SQL table but swap out the unique id of the new row?
- Using IF ELSE statement based on Count to execute different Insert statements
- SQL – Call Stored Procedure for each record
- SQL – How do I get only the numbers after the decimal?
- How to retrieve records for last 30 minutes in MS SQL?
- Why do SQL Server Scalar-valued functions get slower?