I was wondering is there anyway to return a columns type? e.g date,int,double etc etc.?
The reason I ask is because I need to search a database for date values that are below , and above a certain value or simply invalid. If it were only a few tables it wouldnt be a problem, but this database consists of over a hundred tables.
I would like to search thru the database listing the table and column which are set as a type date.
Then using the tablename&column do a check on them to see which records contain invalid data.
Problem:
1.First list all the tables
2.Get the columns & coresponding types
3. Select all the date columns and do a validity check
The reason I ask is because I need to search a database for date values that are below , and above a certain value or simply invalid. If it were only a few tables it wouldnt be a problem, but this database consists of over a hundred tables.
I would like to search thru the database listing the table and column which are set as a type date.
Then using the tablename&column do a check on them to see which records contain invalid data.
Problem:
1.First list all the tables
2.Get the columns & coresponding types
3. Select all the date columns and do a validity check