I am trying to build a artisan command that will connect to a remote MSSQL server, retrieve some records and store them in the local MySQL db.
The query I am performing is DB::connection('sqlsrv')->select('SELECT * FROM Users')
If I use the above in a blade view, it works. But if I use it in an artisan command, I get the error [PDOException] could not find driver
Any help appreciated