note 74404 deleted from ref.mssql by danbrown
| From: | danbrown@php.net | Date: | Mon, 18 May 2009 02:08:57 +0000 |
| Subject: | note 74404 deleted from ref.mssql by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-155624@lists.php.net to get a copy of this message | ||
Note Submitter: deyura at gmail dot com
----
FreeTDS is work!!!
But after install you shoul add in config file
1. Add in freetds.conf client cahrset:
[TDS_NAME_TO_CONNECT]
host = 192.168.0.1
port = 1433
tds version = 8.0
client charset = CP1251
2. For datetime add in locales.conf in [default]:
date format = %Y-%m-%d %I:%M:%S.%z
3. restart apache
4. In your php-script you should connect to [TDS_NAME_TO_CONNECT]
mssql_connect('TDS_NAME_TO_CONNECT', 'php', '123');