Enabling Azure MSSQL Server SRV
At Scriptcase, we have the following drivers available for connection to Azure MSSQL Server: MSSQL Server NATIVE SRV, MSSQL Server NATIVE SRV PDO and MSSQL Server ODBC . If you are using your own pre-configured environment, the MSSQL Server extensions must be enabled manually in PHP.
Before proceeding with this documentation, check your PHP architecture. For drivers to be enabled correctly, files must be downloaded according to the architecture used.
- In your Scriptcase, there is the file info.php, access it by the URL:
http://127.0.0.1:8092/scriptcase/info.php, where you will find the information regarding the architecture in phpinfo().
NOTE: If you are using Scriptcase’s automatic installer, the PHP architecture will be the same as the one you downloaded. Download Microsoft ODBC Driver 11 For SQL Server according to your PHP architecture .
- Architecture x86 = 32 bits
- Architecture x64 = 64 bits
Listed below are the necessary files for the drivers to be enabled.
- Microsoft ODBC Driver 11 For SQL Server (x64): Click Here
- Microsoft ODBC Driver 11 For SQL Server (x86): Click Here
- PHP extensions (php_pdo_sqlsrv_73_nts_x64 and php_sqlsrv_73_nts_x64): Click Here
|Server 2016||Server 2012 /R2||Windows 10||Windows 8 / 8.1||Server 2008 SP2 / R2 SP1||Windows 7 SP1||Windows Vista SP2|
|Native SRV PDO|
IMPORTANT: if you need to use Database Identifiers in your tables, we recommend using the double quotation marks( “ ) instead of the brackets( [ ] ) because of the conflict with the of Global Variables syntax Scriptcase. Using the brackets as database identifiers may lead to problems in the Scriptcase applications.
Configuring and enabling Azure MSSQL Server SRV on Windows
IMPORTANT: If you are using Scriptcase’s automatic installer, the extensions are already enabled in PHP, requiring only the installation of the client. Proceed to item 3.
1 - Extract the .zip file and copy the files from the php_pdo_sqlsrv_73_nts_x64 and php_sqlsrv_73_nts_x64 .dll extensions previously downloaded to your PHP’s
2 - In the
php.ini file, located in
C:\php, add the lines referring to the MSSQL Server extensions php_pdo_sqlsrv_73_nts_x64 and php_sqlsrv_73_nts_x64. See the example below:
3 - After downloading the Microsoft ODBC Driver 11 For SQL Server file, run the installer and follow the steps below:
4 - Accept the terms of the license agreement and click next.
5 - Check the option “ODBC Driver for SQL Server SDK”, because the components that we will need are also in this option.
- In this option, leave the option “Client Components” checked.
6 - Click Install to start the client installation.
7 - The program features you selected are being installed.
8 - Click finish to exit.
9 - Restart the Apache service using the Task Manager.
Open the Task Manager and click on the Services tab.
Look for the
Apache2.4service and right click on this service, then Restart.
Connection to Scriptcase
- MSSQL Server NATIVE SRV: Click here
Questions or Connection Problems?
Contact our support in case of connection problems or questions regarding this database.