I am unable to find a configuration entry to change the database schema name used by Quartz.net when the instance is persisted in SQL server. below is the portion of the configuration I am using to point it to SQL server Database.
<quartz>
<add key="quartz.scheduler.instanceName" value="quartz" />
<add key="quartz.scheduler.instanceId" value="AUTO" />
<add key="quartz.threadPool.type" value="Quartz.Simpl.SimpleThreadPool, Quartz" />
<add key="quartz.threadPool.threadCount" value="4" />
<add key="quartz.jobStore.misfireThreshold" value="60000" />
<!-- Database job store -->
<add key="quartz.jobStore.type" value="Quartz.Impl.AdoJobStore.JobStoreTX, Quartz" />
<add key="quartz.jobStore.useProperties" value="false" />
<add key="quartz.dataSource.default.connectionStringName" value="DatabaseConnectionString" />
<add key="quartz.dataSource.default.provider" value="SqlServer-20" />
<add key="quartz.jobStore.tablePrefix" value="QRTZ_" />
</quartz>
I was expecting something similar to how it lets you configure the table name prefix. is there any configuration property I can use to change the schema name ... I want the the tables to be
qrtz.QRTZ_BLOB_TRIGGERS
Instead of the default
dbo.QRTZ_BLOB_TRIGGERS
I couldn't find any documentation on this, if it is at all possible. something like below for example ???
<add key="quartz.jobStore.schemaName" value="qrtz" />
Using SQL Server Management StudioRight-click the Security folder, point to New, and select Schema. In the Schema - New dialog box, on the General page, enter a name for the new schema in the Schema name box. In the Schema owner box, enter the name of a database user or role to own the schema.
What is Schema in SQL? In a SQL database, a schema is a list of logical structures of data. A database user owns the schema, which has the same name as the database manager. As of SQL Server 2005, a schema is an individual entity (container of objects) distinct from the user who constructs the object.
A specific setting for schema does not exist.
You can try to "string hack it" with
<add key="quartz.jobStore.tablePrefix" value="[MySchema].QRTZ_" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With