Skip to content

Commit 3f223ba

Browse files
David Desbergweaverryan
authored andcommitted
Added MSSQL example for PDO session storage table
1 parent 12527cb commit 3f223ba

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

cookbook/configuration/pdo_session_storage.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,3 +182,20 @@ For PostgreSQL, the statement should look like this:
182182
session_time integer NOT NULL,
183183
CONSTRAINT session_pkey PRIMARY KEY (session_id)
184184
);
185+
186+
Microsoft SQL Server
187+
~~~~~~~~~~
188+
189+
For MSSQL, the statement might look like the following:
190+
191+
.. code-block:: sql
192+
193+
CREATE TABLE [dbo].[session](
194+
[session_id] [nvarchar](255) NOT NULL,
195+
[session_value] [ntext] NOT NULL,
196+
[session_time] [int] NOT NULL,
197+
PRIMARY KEY CLUSTERED
198+
(
199+
[session_id] ASC
200+
) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
201+
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

0 commit comments

Comments
 (0)