2

Here is how I configure and start my Quartz.Net scheduler in 1.x:

properties["quartz.scheduler.instanceName"] = instanceName;
properties["quartz.scheduler.instanceId"] = "AUTO";
properties["quartz.threadPool.type"] = "Quartz.Simpl.SimpleThreadPool, Quartz";
properties["quartz.threadPool.threadCount"] = threadCount;
properties["quartz.threadPool.threadPriority"] = "Normal";
properties["quartz.jobStore.misfireThreshold"] = "60000";
properties["quartz.jobStore.type"] = "Quartz.Impl.AdoJobStore.JobStoreTX, Quartz";
properties["quartz.jobStore.useProperties"] = "true";
properties["quartz.jobStore.dataSource"] = "default";
properties["quartz.jobStore.tablePrefix"] = tablePrefix;
properties["quartz.jobStore.clustered"] = "false";
properties["quartz.jobStore.lockHandler.type"] = "Quartz.Impl.AdoJobStore.UpdateLockRowSemaphore, Quartz";
properties["quartz.dataSource.default.connectionString"] = connectionString;
properties["quartz.dataSource.default.provider"] = "SqlServer-20";
schedFact = new StdSchedulerFactory(properties);
svcScheduler = schedFact.GetScheduler();
svcScheduler.Start();

After migrating to 2.x will I have to change something here and what?

Most importantly is quartz.dataSource.default.provider for SQL Server still SqlServer-20 or did something change there?

Dean Kuga
  • 11,878
  • 8
  • 54
  • 108

1 Answers1

2

Nothing has really changed in the configuration of Quartz.net 2.x.
You can find some useful information here.

Yes, you still have to use SqlServer-20 if you want to use MS Sql Server.

For a full list of db provider have a look here.

LeftyX
  • 35,328
  • 21
  • 132
  • 193