ProTech's home page

ProTech-Online.com

Microsoft SQL code example create client sessions database table.

USE [sans]
GO
/****** Object:  Table [dbo].[sessions]    Script Date: 10/19/2011 11:05:44 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[sessions](
       [sessionid] [uniqueidentifier] NOT NULL,
       [userid] [nvarchar](256) NULL,
       [clienthash] [char](40) NULL,
       [timeout] [datetime] NULL,
 CONSTRAINT [PK_sessions] PRIMARY KEY CLUSTERED
(
       [sessionid] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO


Copyright © 2013 ProTechs-Online.com; All rights reserved.