SQL Server: How to add column with default current time updated in every INSERT/ UPDATE record

[sql]
ALTER TABLE TestTable
ADD DateInserted DATETIME NOT NULL DEFAULT (GETDATE());
[/sql]

Be the first to comment

Leave a Reply

Your email address will not be published.


*