PDO datetime format for MSSQL/dblib

前端 未结 3 943
夕颜
夕颜 2021-02-08 10:10

MSSQL 2005 database has collation \"German_Phonebook_BIN\" (but that\'s not important). Connection to db is done via PDO and FreeTDS (using PHP under Debian Squeeze). When I try

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-08 10:42

    I find the best way to use PHP_PDO_DBLIB with SQL SRV is to store dates as datetime2(6) in the MS SQL SERVER DB. It seems to solve a lot of problems when using the symfony framework anyway.

提交回复
热议问题