sodakotahusker
Programmer
- Mar 15, 2001
- 601
I need to sweep through all the tables I have manually created and add two fields. The problem is that they both have a user defined data type with a built in default of getdate() and the function for the current user. When I add the new column I'm told the default is already set so I have to just do an add column userDT
alter table tblTargetLUDischargeType
add [InsertDate] dbo.CurrentDate
It won't let me specify not null because there is not default but it won't let me specify a default because there is one assigned to the UDT. This is a catch 22 situation.
Any way around this one???
alter table tblTargetLUDischargeType
add [InsertDate] dbo.CurrentDate
It won't let me specify not null because there is not default but it won't let me specify a default because there is one assigned to the UDT. This is a catch 22 situation.
Any way around this one???