Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

How to configure an ODBC data source
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: How to configure an ODBC data source
#67153
How to configure an ODBC data source 4 Years ago Karma: 0
I have a data table working with a remote MySQL database using:
DB type: MySQL (mysqli)
Host: {hostname}
DB name: {dbname}
User: {user}
Password: {password}

But I need to connect to a Microsoft SQL Server database. I have an ODBC datasource that works. What do I enter into Host/DB name/User/Password fields? Do I put in the ODBC data source name?

So far I only see "ARI Data Tables: Couldn't connect to external database."

Bill
The administrator has disabled public write access.
 
#67154
Re:How to configure an ODBC data source 4 Years ago Karma: 760
Hello,

Value for "Host" parameter for MS SQL database looks like:

Driver={SQL Server Native Client 10.0};Server=localhost;Database=my_db;

Regards,
ARI Soft
The administrator has disabled public write access.
 
#67155
Re:How to configure an ODBC data source 4 Years ago Karma: 0
Thank you.

That still doesn't work for me. What other prerequisites are there? Do I need to install and configure ODBC for PHP?

I have already successfully configured from PHP to MS SQL so sqlsrv_connect() works.

The MS SQL database is on a different server, so I'm using the name for that server instead of "localhost".

This is on a Windows Server 2012 R2, 64 bit with PHP 7.3. Also on this server I have:
* ODBC Driver 11 for SQL Server (MSODBCSQL11.DLL)
* SQL Server (SQLSRV32.DLL)
* SQL Server Native Client 11.0 (SQLNCLI11.DLL)

This is a puzzle and I think I only have one or two pieces left.

Bill
The administrator has disabled public write access.
 
#67156
Re:How to configure an ODBC data source 4 Years ago Karma: 0
Figured it out...
* Get ODBC working from a dummy piece of PHP
* Copy the working connection string into the "Host" attribute in the "External Database" "Host" setting.
The administrator has disabled public write access.
 
Go to topPage: 1