Syntax for database name MSSQL

Are you using FactoryPMI or Ignition? What’s the error you are getting?

Edit: I see you’re using the deprecated runPrepStmt() call, which needs a 3rd Object[] args parameter after the datasource…