Adding DEFAULT Constraint For Existing Column in Table

CREATE TABLE tester
(dates datetime)
GO
ALTER TABLE [dbo].tester
ADD CONSTRAINT [DF__AccountMe__Creat__4D4A6AA9pppp] DEFAULT (getdate()) FOR dates

Comments

Popular posts from this blog

Always On FailOver Events

The transaction log for database is full due to 'OLDEST_PAGE'

SSAS Cube or Database backup with Powershell command "Backup-AsDatabase"