este es el error (que no se interpretar):
Array ( [0] => Array ( [0] => IMSSP [SQLSTATE] => IMSSP [1] => -14 [code] => -14 [2] => An invalid parameter was passed to sqlsrv_query. [message] => An invalid parameter was passed to sqlsrv_query. ) )
Código PHP:
Ver original
<?php function abrirCONPHP() { $serverName = "sql.dominio.com"; //serverName\instanceName $conn = sqlsrv_connect( $serverName, $connectionInfo); //if( $conn ) //{ // echo "Conexión establecida.<br />"; //} //else //{ // echo "Conexión no se pudo establecer.<br />"; // die( print_r( sqlsrv_errors(), true)); //} } function closeCONNPHP() { sqlsrv_close( $conn ); } abrirCONPHP(); $sql = 'INSERT INTO nombretabla (archivo,fecha,codigo) values ("nombreimagen.jpg","20140814 11:00:00","111111")'; $ins = sqlsrv_query( $conn, $sql); if( $ins === false ) { } closeCONNPHP(); ?>