php - Use odbc eloquent outside laravel PHP7 -


i using eloquent outside laravel. have own php application. using https://github.com/illuminate/database

my config following

$settings3 = array( 'driver'    => 'odbc', 'dsn' => "driver={sql server};server={servername};trusted_connection=true;database=telesur_mis;", 'username' => 'user', 'password' => 'user',);  $capsule->addconnection($settings3,'teleappframework'); 

after executing code getting following error

fatal error: uncaught invalidargumentexception: unsupported driver [odbc]

i have pdo odbc installed, have tested pdo odbc connection outside of eloquent. reason using odbc is, because using php7 , there no pdo extension sql server.

can me on this?

i download freetds , use regular sqlsrvr driver works charm (if on unix env) there lot of posts on how configure etc up.


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -