I have a related server statement using OpenQuery:
SELECT mycol1, mycol2, mycol3 FROM OPENQUERY(MYLINKEDSERVER, 'SELECT * FROM mysqldb.table')
The above works without SSM. When I use the MySQL PHP frameworks to run this query in a web application (using the same SQL Server credentials), I need to insert the following 2 statements:
SET ANSI_NULLS ON
SET ANSI_WARNINGS ON
I read the definitions for ANSI_NULLS and ANSI_WARNINGS, but I donβt quite understand why they need to be configured in order for the request to work in PHP.
Does anyone know the reason?
My linked server is an instance of MySQL.
source share