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 |
|
Trent
Starting Member
39 Posts |
Posted - 2005-09-13 : 15:31:19
|
| Is there any way to get a count of the number of columns?Also, I'm more interested in if there's a way to get the date the table was created?Thank you for any help! |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2005-09-13 : 15:34:44
|
| -- number of columnsSELECT COUNT(*)FROM INFORMATION_SCHEMA.COLUMNSWHERE TABLE_NAME = 'TableName'-- date table was createdSELECT crdate FROM sysobjects WHERE [name] = 'TableName'Tara |
 |
|
|
Trent
Starting Member
39 Posts |
Posted - 2005-09-13 : 15:40:22
|
| RESOLVEDWow, that's simple, I'm glad I asked.Thank You! |
 |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
|
|
|