techscope / laravel-sqlserver

Use ODBC to connect with your SQL Server instances from Laravel 5+
GNU General Public License v3.0
20 stars 9 forks source link

Unable to use /etc/odbc.ini entry. #2

Open freak3dot opened 6 years ago

freak3dot commented 6 years ago

I configured an entry in /etc/odbc.ini. Then, I determined that I was able to connect to that with PDO in a simple quick script just for that.

/etc/odbc.ini

[ExampleEntry]
Driver = FreeTDS
Description = Example Description
Trace = No
Server = 192.168.x.x
Port = 1433
TDS version = 0.95

I expected to be able to connect with the dsn: odbc:ExampleEntry in the laravel application. However, Database and Driver are always added to the dsn.

Maybe this is something that isn't supported intentionally because we would rather have all the configuration in the .env file?