Viewing 2 posts - 1 through 2 (of 2 total)
Similar to Luis brilliant solution, but without the where clause:
select 'ALTER TABLE ' + so.name + ' DROP CONSTRAINT ' + sc.name
from sysobjects so
inner join sysobjects sc on sc.parent_obj =...
April 13, 2006 at 7:22 am
#632361
datediff returns the difference between two datetime values.
It seems to me the timezone table contains just hours (no dates!) and that's why you won't get the expected results.
In order to...
April 7, 2006 at 10:33 am
#631551