Using explicit schema names in the Quartz database

2,111 views
Skip to first unread message

areel

unread,
Feb 18, 2009, 5:43:19 AM2/18/09
to Quartz.NET
Hi

We have a product that supports the use of SQLServer,Oracle and MySQL
as the backend DB.

We use an explicit schema name in order to help in the admin of
supporting 3 DB vendors. We would like to store the quartz database
inside our existing database. To do so I believe we need to have the
tables etc associated with our schema.

So, is it possible to configure Quartz to use an explicit schema_name?


e.g
with SQLServer use [my_schema_name].[quartzTable] rather than [dbo].
[quartzTable]
with Oracle use "my_schema_name"."quartzTable" rather than
"defaultUserSchema"."quartzTable"
("defaultUserSchema" Oracle uses the schema of the logged on user, so
in the supplied quartz oracle sql script no explicit schema_name is
required/given, but the result is that these tables etc belong to who
ever is logged on when the script is executed).


Regards


Aidan

Marko Lahma

unread,
Feb 19, 2009, 2:40:32 AM2/19/09
to quar...@googlegroups.com
Hi,

Try setting table prefix with schema included, like this:

properties["quartz.jobStore.tablePrefix"] = "[dbo].QRTZ_";

Hope this helps,

-Marko

areel

unread,
Feb 23, 2009, 8:06:59 AM2/23/09
to Quartz.NET
Hi,

Just to let you know that your suggestion works. I have tested it on
SQLServer 2005 schema.

I would also like to say Thanks for the effort you and your colleagues
have put into this product.
I really do appreciate it.

Regards

Aidan


On Feb 19, 7:40 am, Marko Lahma <marko.la...@gmail.com> wrote:
> Hi,
>
> Try setting table prefix with schema included, like this:
>
> properties["quartz.jobStore.tablePrefix"] = "[dbo].QRTZ_";
>
> Hope this helps,
>
> -Marko
>
Reply all
Reply to author
Forward
0 new messages