How to connect to local SQL Server?
How to connect to local SQL Server?
Alex1
Posts: 18Questions: 8Answers: 0
I tried
$sql_details = array(
"type" => "Sqlserver",
"user" => "",
"pass" => "",
"host" => "(local)\SQLEXPRESS",
"port" => "",
"db" => "accounting",
"dsn" => ""
);
which didn't work. Unsure as to correct format. It is SQL Server 2016 Express on local host using normal Windows Authentication.
This discussion has been closed.
Answers
Can you show me the connection string that you would normally use to make a connection and I'll try working it back from there.
Also, what was the error that you were getting from the above?
Thanks,
Allan
@allan here is what I use in another plain PHP page
Trying to move over from SQLite, have converted the database, now I just need to get this thing connected! :-)