I 开发者_如何学运维am facing a problem with mssql_connect. I am using symfony1.1. mssql_connect working properly in actions. But I am getting " Call to undefined function mssql_connect()" when i call mssql_connect from symfony task. Any one please help me to solve this issue. Thanks in advance
Avinash
My guess would be that it's a namespace issue.
Try:
\mssql_connect(...)
By far the easiest method to connect to a SQL server is to route it through a ODBC connection.
- Administrative Tools -> Data Sources (ODBC)
- System DNS
- Add... "SQL Server"
Then just use odbc_connect("sql_test", "user", "pass") instead.
精彩评论