declare @tablename nvarchar(80)
declare @cloumn nvarchar(80)
declare @sql nvarchar(400)
declare c1 cursor scroll for
select table_name,column_name from information_schema.columns where DATA_TYPE=‘datetime‘
open c1
fetch first from c1 into @tablename,@cloumn
while @@fetch_status=0
begin