Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2006-03-02 : 07:55:51
|
| shaheenbaig writes "i want a query to find the exact column names, their datatypes and the size of the datatype in a particular table in a database.please helpthanks in advance." |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-03-02 : 08:08:14
|
| select * from information_schema.columnswhere table_name='tableName'MadhivananFailing to plan is Planning to fail |
 |
|
|
Srinika
Master Smack Fu Yak Hacker
1378 Posts |
Posted - 2006-03-02 : 08:12:38
|
| SELECT COLUMN_NAME, DATA_TYPE, CHARACTER_MAXIMUM_LENGTHfrom INFORMATION_SCHEMA.Columnswhere table_name = 'UrTblName' |
 |
|
|
|
|
|