2017 © Pedro Peláez
 

silverstripe-vendormodule mssql

Adds MSSQL support to SilverStripe

image

silverstripe/mssql

Adds MSSQL support to SilverStripe

  • Thursday, June 28, 2018
  • by tractorcow
  • Repository
  • 9 Watchers
  • 14 Stars
  • 4,790 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 24 Forks
  • 5 Open issues
  • 13 Versions
  • 3 % Grown

The README.md

SQL Server Database Module

Allows SilverStripe to use SQL Server databases., (*1)

Build status, (*2)

Maintainer Contact

  • Sean Harvey (Nickname: halkyon) , (*3)

  • Damian Mooyman (@tractorcow), (*4)

Requirements

  • SilverStripe 4+
  • SQL Server 2008, 2008 R2, or 2012.

mssql PHP api is no longer supported as of 2.0, (*5)

*nix

Linux support is only available via the PDO extension. This requires:, (*6)

Windows

On windows you can either connect via PDO or sqlsrv. Both options require the SQL Server Driver for PHP. "sqlsrv" 3.0+, (*7)

Note: SQL Server Express can also be used which is provided free by Microsoft. However, it has limitations such as 10GB maximum database storage., (*8)

Installation

These steps will install the latest SilverStripe stable, along with this module using Composer:, (*9)

  • Install SilverStripe: composer create-project silverstripe/installer /my/website/folder
  • Install module: cd /my/website/folder && composer require silverstripe/mssql ^2
  • Open the SilverStripe installer by browsing to install.php, e.g. http://localhost/silverstripe/install.php
  • Select SQL Server 2008+ in the database list and enter your SQL Server database details

Troubleshooting

Q: SQL Server resides on a remote host (a different machine) and I can't connect to it from mine., (*10)

A: Please ensure you have enabled TCP access using SQL Server Configuration Manager and opened firewall ports., (*11)

Q: I just installed SQL Server, but it says that it cannot connect, (*12)

A: Sometimes SQL Server will be installed as a non-default instance name, e.g. "SQLExpress" instead of "MSSQLSERVER" (the default.) If this is the case, you'll need to declare the instance name when setting the server in your PHP database configuration. For example: (local)\SQLExpress. The first part before the slash indicates the server host, or IP address. In this case, (local) indicates localhost, which is the same server PHP is running on. The second part is the SQL Server instance name to connect to., (*13)

Q: I'm getting unicode SQL Server errors connecting to SQL Server database (e.g. Unicode data in a Unicode-only collation or ntext data cannot be sent to clients using DB-Library (such as ISQL) or ODBC version 3.7 or earlier), (*14)

A: If you are using FreeTDS make sure you're using TDS version 8.0 in freetds.conf. If on Windows, ensure you use the SQL Server Driver for PHP and NOT the mssql drivers provided by PHP., (*15)

Q: Using FreeTDS I can't connect to my SQL Server database. An error in PHP says the server doesn't exist, (*16)

A: Make sure you've got an entry in /etc/freetds/freetds.conf that points to your server. For example:, (*17)

[myserver]
    host = myserver.mydomain.com
    port = 1433
    tds version = 8.0

Then you can use "myserver" (the bit in square brackets above) as the server name when connecting to the database. Note that if you're running Macports, the file is located in /opt/local/etc/freetds/freetds.conf., (*18)

Alternatively, if you don't want to keep adding more entries to the freetds.conf to nominate more SQL Server locations, you can instead use the full the host/ip and port combination, such as "myserver:1433" (1433 being the default SQL Server port.) and ensure the "tds version = 8.0" is set globally in the freetds.conf file., (*19)

Note: Use tabs not spaces when editing freetds.conf, otherwise it will not load the configuration you have specified!, (*20)

Note: Certain distributions of Linux use SELinux which could block access to your SQL Server database. A rule may need to be added to allow this traffic through., (*21)

The Versions

28/06 2018

dev-master

9999999-dev

Adds MSSQL support to SilverStripe

  Sources   Download

The Requires

 

database mssql silverstripe

29/05 2018

2.0.x-dev

2.0.9999999.9999999-dev

Adds MSSQL support to SilverStripe

  Sources   Download

The Requires

 

The Development Requires

database mssql silverstripe

29/05 2018

2.0.2

2.0.2.0

Adds MSSQL support to SilverStripe

  Sources   Download

The Requires

 

The Development Requires

database mssql silverstripe

15/02 2018

2.x-dev

2.9999999.9999999.9999999-dev

Adds MSSQL support to SilverStripe

  Sources   Download

The Requires

 

database mssql silverstripe

15/02 2018

2.0.1

2.0.1.0

Adds MSSQL support to SilverStripe

  Sources   Download

The Requires

 

database mssql silverstripe

07/12 2017

2.0.0

2.0.0.0

Adds MSSQL support to SilverStripe

  Sources   Download

The Requires

 

database mssql silverstripe

07/12 2017

1.x-dev

1.9999999.9999999.9999999-dev

Adds MSSQL support to SilverStripe

  Sources   Download

The Requires

 

database mssql silverstripe

07/12 2017

1.0.2

1.0.2.0

Adds MSSQL support to SilverStripe

  Sources   Download

The Requires

 

database mssql silverstripe

15/02 2017

1.0.2-rc1

1.0.2.0-RC1

Adds MSSQL support to SilverStripe

  Sources   Download

The Requires

 

database mssql silverstripe

12/02 2017

1.0.1

1.0.1.0

Adds MSSQL support to SilverStripe

  Sources   Download

The Requires

 

database mssql silverstripe

02/02 2017

0.10.x-dev

0.10.9999999.9999999-dev

Adds MSSQL support to SilverStripe

  Sources   Download

The Requires

 

database mssql silverstripe

04/07 2016

1.0.0

1.0.0.0

Adds MSSQL support to SilverStripe

  Sources   Download

The Requires

 

database mssql silverstripe

03/01 2013

0.8.x-dev

0.8.9999999.9999999-dev

Adds MSSQL support to SilverStripe

  Sources   Download

The Requires

 

database mssql silverstripe