Working with SQL (SQL plugin)
In this recipe, we will explore the SQL plugin to work with SQL. This is a bit different from the JDBC recipe.
Getting ready
Obviously, we need a database. This database can be PostgreSQL, MS SQL, Oracle, or MySQL. For testing, you can use the PostgreSQL database that is implemented in the appliance (refer to the Tuning the appliance recipe in Chapter 2, Optimizing Orchestrator Configuration). Also, take a look at the There's more... section of this recipe.
We will use a Microsoft SQL 2008 R2 database in this example; however, the steps are the same for all databases. The database we will be using is called testDB
.
You will need an existing database and a user who is able to create/drop tables as well as insert/delete information, for example, the DBO role.
How to do it...
See the following sections.
Add an SQL DB to Orchestrator
In this section, we will connect an SQL server to Orchestrator:
Start the Library | SQL | Configuration | Add a database workflow.
Enter a name...