我需要将一个表分区为多个磁盘上的多个文件。下面是创建表。
我们面临的挑战是,在对这个巨大的表进行分区时,ts
时间戳数据将丢失(将被覆盖为新的时间戳)。我怎样才能避免这种情况?
CREATE TABLE [dbo].[Audit](
[Id] [uniqueidentifier] NOT NULL,
[ObjectName] [varchar](150) NOT NULL,
[IUD] [varchar](1) NOT NULL,
[ts] [timestamp] NULL,
[username] [varchar](150) NOT NULL,
[IP] [varchar](50) NULL,
[MAC] [varchar](50) NULL,
[ChangeSet] [xml] NULL,
[Key1] [varchar](50) NULL,
[Key2] [varchar](50) NULL,
[Date] [datetime] NULL,
CONSTRAINT [PK_Audith] PRIMARY KEY CLUSTERED
(
[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]