Skip to main content
Skip table of contents

SQL External Bindings

In GlobalSearch 6.1.103+ the “External Binding” Feature was added to lists in GlobalSearch, there are currently two options for this, SQL and MongoDB, this article covers how to use the SQL binding to populate a GlobalSearch list.

In this example we’ll use the ssMaster.dbo.ssConnectionStrings table to return a list of the GlobalSearch databases connected to your GlobalSearch instance.

You can learn how to check your GlobalSearch version by reading our https://knowledge.square-9.com/s9skb/Determine-Software-Version.979894356.html knowledge base page

  1. Navigate to the Field Catalog and then the Lists Subsection

  2. Create a new list and turn on the External Binding option

  3. Select SQL Query from the drop down

Connection Strings

You can read more about the options available for SQL Server Connection Strings at the link below;

https://www.connectionstrings.com/sql-server/

For security reasons you cannot use “Integrated Security” or “Trusted_Connection” in your connection strings. You will need to create a SQL Authentication user and pass in the username and password via the Connection String

A typical SQL Server connection string can be found below;

CODE
Server=(local);Database=ssMaster;User Id=globalsearch;Password=globalsearch;

SQL Query

GlobalSearch will use the first column returned from the SQL query to populate the list, it will ignore all other information returned.

SQL
select Name from ssMaster.dbo.ssConnectionStrings

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.