Interview Question in SQL Server Clustering
Interview Question :: Creating a last modified date in SQL Server 2005
I'm new to SQL Server after using Access for many years and need some help setting up a time stamp to show the last time a record was updated. Here is part of my table script and the column that needs to be updated is "time_stamp". Any help is appreciated and please remember I'm new to SQL Server. The simpler the solution the better. Thanks.
CREATE TABLE [dbo].[genericAccountDB](
[accountId] [varchar](50) NOT NULL,
[accountServerID] [varchar](50) NOT NULL,
[accountPlatform] [varchar](25) NOT NULL,
[accountUsers] [text] NOT NULL,
[time_stamp] [smalldatetime] NOT NULL,
CONSTRAINT [PK_genericAccountDB] PRIMARY KEY CLUSTERED
(
[accountId] ASC,
[accountServerID] ASC

Loading ...