Babelfish and the SQLSRV driver in PHP

0

Is there support for PHP with Babelfish using the SQLSRV driver? It doesn't throw any error message but the $conn returns as FALSE. Tested with python3 pyodbc library and it works fine.

AWS
light
질문됨 2년 전252회 조회
1개 답변
0

To support the driver, here is what needs to be done:

  • By default the driver expects MARS to be switched ON. Since Babelfish does not support MARS we return MARS OFF in the Pre-login response, this is not expected by the PHP driver hence it times out gracefully.
  • The workaround is to add “MultipleActiveResultSets=false” in the connection URL.
AWS
light
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠