Microsoft SQL (MSSQL) - Forum

Forum Navigation
You need to log in to create posts and topics.

Microsoft SQL (MSSQL)

Hello everyone.

Please help me. I can't connect a Microsoft SQL (MSSQL) database. Is this connection different from MySQL or am I doing something wrong?

@alexander_loc please take a look at the config.php template. It includes sample code to connect to SQL Server:

$dbAlias[0]="db3";
$dbConnectionStrings[0]="sqlsrv:Server=localhost;Database=testdb";
$dbUserNames[0]="SqlServerUserName";
$dbPasswords[0]="SqlServerUserPassword";

//Connection string through a port 
//"sqlsrv:Server=localhost,1521;Database=testdb"

//Connection string for Azure
//"sqlsrv:Server=12345abcde.database.windows.net;Database=testdb"

Regards

javadrajabihakami has reacted to this post.
javadrajabihakami