SQL provider
What are Integrations?
SquaredUp DS Integrations allow you to create your own providers. Each Integration has its own form to help you input the information required for different providers.
What is a provider?
Providers contain the connection details to external platforms. A provider only needs to be set up once and can then be used when creating tiles on a dashboard.
There are two types of integrations and therefore providers:
- generic Web API providers that can connect to any REST API
- dedicated providers that connect to a specific external platform or database (SQL, ServiceNow, Azure Active App Insights, Elasticsearch, etc.)
About SQL providers
An SQL provider contains the connection string to the SQL database you want to connect to. You can use Microsoft SQL Server or ODBC drivers for your connection.
Since SquaredUp DS version 5.4 you need an SQL provider to use the SQL tile. . If you haven't created an SQL provider yet, you need to create a provider first.
If you created SQL tiles before SquaredUp DS version 5.4, they were created with a connection string in the tile instead of a provider.
As soon as you update to v5.4 those connection strings will automatically be converted into providers. If identical connection strings are detected, they'll be merged into one provider.
The new SQL providers will be named in the following format: servername.databasename (if server and database name can't be identified they'll be named SQL provider 1, SQL provider 2, etc.)
Adding an SQL provider
- Make sure you have access to the database you want to use.
To be able to query databases, such as the Operations Manager database, the SquaredUp DS application pool identity needs to be given the db_datareader role in SQL Server Management Studio for the database you wish to query. See How to configure access to a database for use with the SQL tile.
- Provider name:
Enter a name for your provider that makes it easy for you to identify. You can't change the name after you created the provider. - Driver and Connection String:
The connection string depends on your database and the driver you've chosen:Connection string for any database:
With integrated security:
Server=<SQLservername>;Database=<DatabaseName>;Integrated Security=True;
With username and password:
Server=<SQLservername>;Database=<DatabaseName>;User Id=<username>;Password=<password>;
If the SquaredUp server and SQL server are in the same domain you can just use the SQL server name, if they are not in the same domain you should use the fully qualified domain name.
If you want to specify an instance
Server=<SQLservername>\\<InstanceName>;Database=<DatabaseName>;Integrated Security=True;
Example:
Server=SQLServer1\\Main;Database=CRMDB;Integrated Security=True;
If you want to specify a port
Server=<SQLservername>,<PortNumber>;Database=<DatabaseName>;Integrated Security=True;
Example:
Server=SQLServer1,51433;Database=CRMDB;Integrated Security=True;
Note: You need to use 64-bit ODBC drivers.
Note: When an SQL tile uses an ODBC provider, you can't use mustache values for your queries in that tile.
If you are using an ODBC driver
After you've set up your ODBC driver in Windows on the SquaredUp server, add the following at to your connection string:
Driver=<Name of your ODBC driver>;
Example:
Driver=<ODBCdriverName>;Server=<SQLservername>;Database=<DatabaseName>;User Id=<username>;Password=<password>;
If you are using a System DSN
Note: You need to use a System DSN, not a User DSN.
After you've set up your System DSN in Windows on the SquaredUp server, enter the following instead of a connection string:
DSN=<Name of your System DSN>;
DSN=<DSNname>
- Click save to save your new provider.
To use the SQL provider in a tile see How to use the SQL tile