Hello everyone. I am in the middle of a huge database redesign and I was wondering if anyone knows of a way to set a default value to an existing column?
The colum in data-type DATETIME and I want to set the default of that column to getdate() without having to recreate the table and do a bunch of selecting back and forth to get it to work.
Any ideas would be greatly appreciated.
PS: The Microsoft Transact-SQL refrence doesnt have anything about this topic. I believe sp_bindefault only works with varchar variables? I also tried to seach this forum but apparently the search feature is not working. I got a 404
Thanks a ton again.
The colum in data-type DATETIME and I want to set the default of that column to getdate() without having to recreate the table and do a bunch of selecting back and forth to get it to work.
Any ideas would be greatly appreciated.
PS: The Microsoft Transact-SQL refrence doesnt have anything about this topic. I believe sp_bindefault only works with varchar variables? I also tried to seach this forum but apparently the search feature is not working. I got a 404
Thanks a ton again.