Add a new database in Ignition Using Button

Hello,
I am looking to add a database in Ignition using - ‘system.db.addDatasource’ system function using the code examples given in the site. Here I am not able to connect my jdbc driver i,e of Microsoft SQLServer to my code and getting error as JDBC Driver not found.

Just to be clear, that doesn't add a database, it "Adds a new database connection in Ignition". The database must already exist.

system.db.addDatasource - Ignition User Manual 8.1 - Ignition Documentation.

Is there a way to add database in Ignition?

As far as I know, no.
You would normally create the database using your SQL management software - Microsoft SQL Management Studio for you, I think.

1 Like

You should be able to by using a query - SQL CREATE/ALTER/DROP SCHEMA - w3resource

1 Like

Thanks,
Will Check on adding new database connection.