EXEC sp_msforeachtable 'PRINT ALTER TABLE ? ADD LastModified DATETIME NOT NULL DEFAULT GETDATE(); ALTER TABLE ? ADD UserID int NULL; ALTER TABLE ? ADD Deleted bit NOT NULL DEFAULT 0;' EXEC sp_msforeachtable 'PRINT Update ? SET SiteID=1'
Quick Links
Legal Stuff