From 158227fcf369e86fdc2ce742bf19860db70f4b23 Mon Sep 17 00:00:00 2001 From: Francesco Nigro Date: Tue, 11 Dec 2018 16:51:20 +0100 Subject: [PATCH] ARTEMIS-2202 Improve MSSQL support for JDBC storage --- .../src/main/resources/journal-sql.properties | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/artemis-jdbc-store/src/main/resources/journal-sql.properties b/artemis-jdbc-store/src/main/resources/journal-sql.properties index b8877ba2cb..1ac4bff2f5 100644 --- a/artemis-jdbc-store/src/main/resources/journal-sql.properties +++ b/artemis-jdbc-store/src/main/resources/journal-sql.properties @@ -90,4 +90,9 @@ create-journal-table.db2=CREATE TABLE %s(id BIGINT,recordType SMALLINT,compactCo max-blob-size.db2=2147483647 create-file-table.db2=CREATE TABLE %s (ID BIGINT GENERATED ALWAYS AS IDENTITY (START WITH 1 INCREMENT BY 1), FILENAME VARCHAR(255), EXTENSION VARCHAR(10), DATA BLOB(2G), PRIMARY KEY(ID)) append-to-file.db2=UPDATE %s SET DATA = (DATA || ?) WHERE ID=? -table-names-case.db2=upper \ No newline at end of file +table-names-case.db2=upper + +# MSSQL SQL statements +create-file-table.mssql=CREATE TABLE %s (ID BIGINT NOT NULL IDENTITY, FILENAME VARCHAR(255), EXTENSION VARCHAR(10), DATA VARBINARY(max), PRIMARY KEY(ID)) +create-journal-table.mssql=CREATE TABLE %s(id BIGINT,recordType SMALLINT,compactCount SMALLINT,txId BIGINT,userRecordType SMALLINT,variableSize INTEGER,record VARBINARY(max),txDataSize INTEGER,txData VARBINARY(max),txCheckNoRecords INTEGER,seq BIGINT NOT NULL, PRIMARY KEY(seq)) +max-blob-size.mssql=2147483647 \ No newline at end of file