Answer the question
In order to leave comments, you need to log in
How to transfer with the help of php to MS SQL prepared statement variables indicating the type and their length?
I am using PDO for the sqlsrv driver. The mssql profiler shows that all queries come to the database with varchar variables, which means that the database has to do an implicit conversion.
It seems that sqlsrv has constants that allow you to specify the type of a variable, but as far as I understand, these constants do not work with PDO.
Are there options other than to drop pdo?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question