Welcome Guest, Not a member yet? Register   Sign In
connect to sql server with sqlsrv
#4

(This post was last modified: 02-09-2021, 03:13 AM by captain-sensible.)

this might be relevant ? https://forum.codeigniter.com/thread-758...#pid376318

you might also try using 192.168.1.4 in dsn at :
Code:
public $default = [
        'DSN'      => '',
        'hostname' => 'localhost',
        'username' => '',

which is in Database.php in app/config

i.e shift from using .env to direct in Database.php


i'm no expert on databases; in fact i shifted from main stream database eg MySQl to sqlite3 quite some time ago

could you shift to sqlite3 ? works like a dream , all you have to do is put a sqlite3 database file in writable
Reply


Messages In This Thread
RE: connect to sql server with sqlsrv - by captain-sensible - 02-09-2021, 03:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB