{"id":20448,"date":"2022-09-15T16:04:28","date_gmt":"2022-09-15T14:04:28","guid":{"rendered":"https:\/\/help.openbee.com\/open-bee-portal\/administrators-guide\/sql-connectivity-module\/external-sql-connections\/"},"modified":"2026-05-13T10:47:50","modified_gmt":"2026-05-13T08:47:50","slug":"external-sql-connections","status":"publish","type":"page","link":"https:\/\/help.openbee.com\/en\/open-bee-portal\/administrators-guide\/sql-connectivity-module\/external-sql-connections\/","title":{"rendered":"External SQL Connections"},"content":{"rendered":"\n<p>The &#8220;External SQL connections&#8221; screen lists the different external SQL connections and allows you to create new ones.<br\/>An external SQL connection contains the information needed to access an existing database.<\/p>\n\n<p>To create a new connection, click &#8220;<strong>Add External SQL Connection<\/strong>&#8220;.<br\/>Here are the different fields to fill in:<\/p>\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"has-text-align-center\"><strong>Open Bee\u2122 Portal On Premises<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2026\/03\/image-5_sql-translated.png\" alt=\"\" class=\"wp-image-13994\" style=\"width:402px;height:197px\"\/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"has-text-align-center\"><strong>Open Bee\u2122 Portal Cloud<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2026\/03\/image-7_sql-translated.png\" alt=\"\" class=\"wp-image-13999\"\/><\/figure>\n<\/div>\n<\/div>\n\n<p><strong>Connection Name<\/strong> : The name you choose for this connection.<\/p>\n\n<p><strong>ODBC API<\/strong>, to define whether this SQL connection is going to use an ODBC driver.<br\/>If this is the case, you will need to fill in the &#8220;<strong>ODBC Connection String<\/strong>&#8220;.<\/p>\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>When using a cloud base Open Bee\u2122 Portal, an ODBC connection is mandatory.<\/p>\n<\/blockquote>\n\n<div class=\"wp-block-pb-accordion-item c-accordion__item js-accordion-item no-js\" data-initially-open=\"false\" data-click-to-close=\"true\" data-auto-close=\"true\" data-scroll=\"false\" data-scroll-offset=\"0\"><h2 id=\"at-139740\" class=\"c-accordion__title js-accordion-controller\" role=\"button\">D\u00e9tails configuration ODBC (Open Bee\u2122 Portal Cloud et On Premises)<\/h2><div id=\"ac-139740\" class=\"c-accordion__content\">\n<h3 class=\"wp-block-heading\" id=\"configuration-gateway\">Open Bee\u2122 Portal Cloud<\/h3>\n\n\n\n<p>Using the Cloud SQL module requires you to first install the Open Bee\u2122 Gateway tool on a Windows server in your local network that can access the database.<\/p>\n\n\n\n<p><em>Note: Only 32-bit ODBC drivers are supported.<\/em><\/p>\n\n\n\n<p>After installing Open Bee Gateway, you need to open it and enter the login details to your Open Bee\u2122\u2122 Portal cloud instance<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"660\" height=\"413\" src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/09\/image-8.png\" alt=\"\" class=\"wp-image-14006\" style=\"width:470px;height:294px\" srcset=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/09\/image-8.png 660w, https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/09\/image-8-300x188.png 300w\" sizes=\"auto, (max-width: 660px) 100vw, 660px\" \/><\/figure>\n\n\n\n<p>After entering this information, go to the &#8220;Gateway&#8221; tab and click on &#8220;Connect&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"636\" height=\"184\" src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/09\/image-9.png\" alt=\"\" class=\"wp-image-14007\" style=\"width:498px;height:144px\" srcset=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/09\/image-9.png 636w, https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/09\/image-9-300x87.png 300w\" sizes=\"auto, (max-width: 636px) 100vw, 636px\" \/><\/figure>\n\n\n\n<p>Finally, you will be able to go back to the &#8220;External SQL Connections&#8221; tab of the SQL module of Open Bee\u2122 Portal and create a new connection by entering the ODBC connection string and the Gateway to use.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"571\" height=\"191\" src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/09\/image-10.png\" alt=\"\" class=\"wp-image-14008\" srcset=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/09\/image-10.png 571w, https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/09\/image-10-300x100.png 300w\" sizes=\"auto, (max-width: 571px) 100vw, 571px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Open Bee\u2122 Portal On Premises<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><\/p>\n\n\n\n<p>In the case of an ODBC connection on an Open Bee Portal On Premises, it is necessary to prefix the connection string with &#8220;odbc:&#8221; Example: odbc:Driver={Microsoft Excel Driver (*.xls)}; Dbq=C:\\BDD.xls;  <\/p>\n\n\n\n<p>The driver will need to be installed, in the case of an Open Bee\u2122 Portal On Premises, on the server, otherwise it will need to be installed on the server where the <a href=\"https:\/\/help.openbee.com\/en\/open-bee-gateway\/\" data-type=\"page\" data-id=\"2084\" target=\"_blank\" rel=\"noreferrer noopener\">Gateway <\/a>is installed.<\/p>\n<\/blockquote>\n\n\n\n<p><em>Note: Only 64-bit ODBC drivers are supported.<\/em><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Connection Strings<\/h3>\n\n\n\n<p>The connection string is specific to the type of database, refer to the ODBC documentation for your DBMS.<br\/>You can find examples of ODBC connection strings on this site:<a href=\"https:\/\/www.connectionstrings.com\/\">https:\/\/www.connectionstrings.com\/<br\/><\/a>Examples of connection chains include:<br\/><strong>XLS file:<\/strong><br\/>driver={Microsoft Excel Driver (*.xls)}; Dbq=C:\\My fichier.xls;<\/p>\n\n\n\n<p><strong>CSV file<\/strong> (only one file must be present in the directory):<br\/>driver={Microsoft Text Driver (*.txt; *.csv)}; Dbq=C:\\My Directory; extensions=asc,csv,tab,txt;<\/p>\n\n\n\n<p><strong>Microsoft SQL Server:<br\/><\/strong>Driver={SQL Server}; server=&lt;IP&gt;;D atabase=&lt;Comic book&gt;;P ort=&lt;port&gt;; Uid=&lt;wear out&gt;;P wd=&lt;Password&gt;<\/p>\n\n\n\n<p><strong>Oracle:<br\/><\/strong>Driver={Microsoft ODBC for Oracle}; Uid=&lt;wear out&gt;;P wd=&lt;Password&gt;; Server=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=&lt;IP&gt;)(PORT=&lt;PORT&gt;))(CONNECT_DATA=(SID=&lt;Comic book&gt;)));<\/p>\n\n\n\n<p>Note: For On Premises installations, the odbc: intruction must be added in front of the connection string.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h5 class=\"wp-block-heading\">Test the ODBC connection<\/h5>\n\n\n\n<p>If an error is returned when creating the connection, tools like Excel can be used to test the ODBC connection string<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"549\" height=\"538\" src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/12\/image.png\" alt=\"\" class=\"wp-image-14350\" srcset=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/12\/image.png 549w, https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/12\/image-300x294.png 300w\" sizes=\"auto, (max-width: 549px) 100vw, 549px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"669\" height=\"168\" src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/12\/image-1.png\" alt=\"\" class=\"wp-image-14351\" srcset=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/12\/image-1.png 669w, https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/12\/image-1-300x75.png 300w\" sizes=\"auto, (max-width: 669px) 100vw, 669px\" \/><\/figure>\n\n\n\n<div style=\"height:54px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n<\/div><\/div>\n\n<div style=\"height:22px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n<div class=\"wp-block-pb-accordion-item c-accordion__item js-accordion-item no-js\" data-initially-open=\"false\" data-click-to-close=\"true\" data-auto-close=\"true\" data-scroll=\"false\" data-scroll-offset=\"0\"><h2 id=\"at-139741\" class=\"c-accordion__title js-accordion-controller\" role=\"button\">D\u00e9tails configuration sans pilote ODBC (uniquement Open Bee\u2122 Portal On Premises)<\/h2><div id=\"ac-139741\" class=\"c-accordion__content\">\n<p>If your connection does not use an ODBC driver, and you are using an Open Bee\u2122 Portal On Premises instance, you can choose the DBMS.<\/p>\n\n\n\n<p><strong>DBMS<\/strong> : 3 types of DBMS are available, value to choose from MySQL, Oracle and SqlServer (version &gt;=2016).<br\/>PHP&#8217;s PDO extension is used to make the connection.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>If you are using Oracle on a Windows environment, you must install the PDO (PDO_OCI) extension.<br\/>More information on this <a href=\"https:\/\/www.php.net\/manual\/fr\/ref.pdo-oci.php\">link<\/a>.<\/p>\n\n\n\n<p>In case of an Open Open Bee\u2122 Portal update, you will have to re-apply the PDO configuration in the PHP config.ini configuration file.<br\/>On a Unix environment, PDO connections to Oracle and SqlServer are not supported, prefer ODBC.<\/p>\n<\/blockquote>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Please note that if you choose the Oracle DBMS, Open Bee\u2122 Portal is only compatible with versions 12c or higher. If you are using an older database, please set up an ODBC connection.<\/p>\n<\/blockquote>\n\n\n\n<p><strong>Host Name<\/strong> : The name or IP address of the machine on your local network that hosts the database you want to query.<\/p>\n\n\n\n<p><strong>Database Name<\/strong> : The name of the existing database to be queried<\/p>\n\n\n\n<p><strong>Port<\/strong> : The port used to access the database server.<\/p>\n\n\n\n<p><strong>Identifier<\/strong> : The identifier used to connect to the database.<\/p>\n\n\n\n<p><strong>Password<\/strong> : the password linked to the username entered above.<\/p>\n<\/div><\/div>\n\n<div style=\"height:37px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n<p class=\"has-vivid-red-color has-text-color\">In order to secure your database and avoid errors, please use a user account that has only SELECT rights to your database on the necessary tables.<br\/>This will prevent data from being inserted, updated, or deleted in your DBMS.<\/p>\n\n<p>Don&#8217;t forget to save the information you have entered by clicking on &#8220;<strong>Validate<\/strong>&#8220;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The &#8220;External SQL connections&#8221; screen lists the different external SQL connections and allows you to create new ones.An external SQL connection contains the information needed to access an existing database. To create a new connection, click &#8220;Add External SQL Connection&#8220;.Here are the different fields to fill in: Open Bee\u2122 Portal On Premises Open Bee\u2122 Portal [&hellip;]<\/p>\n","protected":false},"author":158,"featured_media":0,"parent":20409,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"templates\/ob-help-products.php","meta":{"footnotes":""},"class_list":["post-20448","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/20448","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/users\/158"}],"replies":[{"embeddable":true,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/comments?post=20448"}],"version-history":[{"count":10,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/20448\/revisions"}],"predecessor-version":[{"id":38744,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/20448\/revisions\/38744"}],"up":[{"embeddable":true,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/20409"}],"wp:attachment":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/media?parent=20448"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}