开发者

mssql_connect from Symfony's task

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.

  1. Administrative Tools -> Data Sources (ODBC)
  2. System DNS
  3. Add... "SQL Server"

Then just use odbc_connect("sql_test", "user", "pass") instead.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜