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.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Search through all tables for date data type

Author  Topic 

ds12will
Starting Member

21 Posts

Posted - 2009-10-29 : 11:52:49
Is there a way to pull back all columns that are data type: date?

jimf
Master Smack Fu Yak Hacker

2875 Posts

Posted - 2009-10-29 : 11:58:11
Select * from information_schema.columns where data_type = 'datetime'

Jim

Everyday I learn something that somebody else already knew
Go to Top of Page

ds12will
Starting Member

21 Posts

Posted - 2009-10-29 : 12:07:45
quote:
Originally posted by jimf

Select * from information_schema.columns where data_type = 'datetime'

Jim

Everyday I learn something that somebody else already knew



Jim thanks a ton that actually helped me more than I was looking for
Go to Top of Page
   

- Advertisement -