v5:database:microsoft_sql_server
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
v5:database:microsoft_sql_server [2018/07/08 01:24] – mnewnham | v5:database:microsoft_sql_server [2025/06/01 13:21] (current) – Remove square brackets in tags dregad | ||
---|---|---|---|
Line 2: | Line 2: | ||
~~NOTOC~~ | ~~NOTOC~~ | ||
===== Description ===== | ===== Description ===== | ||
- | There are 2 supported drivers that allow connections to Microsoft SQL Server databases. | + | There are 2 supported drivers that allow connections to Microsoft SQL Server databases |
==== mssqlnative ==== | ==== mssqlnative ==== | ||
This driver, which runs on both Windows and Linux clients, allows connections to Microsoft SQL Server databases versions 2008 and up, and uses the Microsoft Native Client libraries. This driver is recommended for Windows Clients running PHP 5.3 and higher, and Linux Clients running PHP 7.0 and higher, and provides the fastest PHP connection. | This driver, which runs on both Windows and Linux clients, allows connections to Microsoft SQL Server databases versions 2008 and up, and uses the Microsoft Native Client libraries. This driver is recommended for Windows Clients running PHP 5.3 and higher, and Linux Clients running PHP 7.0 and higher, and provides the fastest PHP connection. | ||
Line 12: | Line 12: | ||
More about the FreeTDS libraries [[http:// | More about the FreeTDS libraries [[http:// | ||
- | ==== SQL Server 2003 ==== | + | |
- | Connecting to SQL server 2003 creates a difficulty There is no support for native client connections, | + | |
- | ------------------------------------ | + | |
====== mssqlnative ====== | ====== mssqlnative ====== | ||
<WRAP right box round 300px> | <WRAP right box round 300px> | ||
Line 28: | Line 26: | ||
[[v5: | [[v5: | ||
[[v5: | [[v5: | ||
+ | == See Also == | ||
+ | [[v5: | ||
</ | </ | ||
Line 74: | Line 74: | ||
$db-> | $db-> | ||
</ | </ | ||
+ | |||
+ | ===== Common Connection Problems ===== | ||
+ | Recent versions of SQL Server fail to connect with an error '' | ||
+ | |||
+ | This problem can be resolved by adding | ||
+ | |||
+ | <code php> | ||
+ | $db-> | ||
+ | </ | ||
+ | |||
+ | before issuing the '' | ||
+ | |||
+ | |||
------------------------------ | ------------------------------ | ||
===== How to create a connection under Linux ===== | ===== How to create a connection under Linux ===== | ||
Line 116: | Line 129: | ||
This driver provides access to Microsoft SQL Server databases from unix systems via Freetds | This driver provides access to Microsoft SQL Server databases from unix systems via Freetds | ||
- | {{tag>[SQL_Server unix active freetds]}} | + | {{tag> |
-------------------------------------- | -------------------------------------- | ||
===== mssql (Windows) ===== | ===== mssql (Windows) ===== | ||
Line 147: | Line 160: | ||
This driver provides undocumented portability extensions to the Unix mssql driver | This driver provides undocumented portability extensions to the Unix mssql driver | ||
- | {{tag>[SQL_Server unix windows active portable]}} | + | {{tag> |
===== mssql_n ===== | ===== mssql_n ===== | ||
Line 162: | Line 175: | ||
This driver appears to provide Unicode enhancements to the mssql driver. You can set character sets using the [[v5: | This driver appears to provide Unicode enhancements to the mssql driver. You can set character sets using the [[v5: | ||
- | {{tag>[" | + | {{tag>" |
v5/database/microsoft_sql_server.1531005870.txt.gz · Last modified: by mnewnham