Ver originalwhile ($row=mysql_fetch_assoc($sql)){echo $row['campo_tipo_fecha']= sqlsrv_get_field($sql,7,[B]SQLSRV_PHPTYPE_STRING(SQLSRV_ENC_CHAR)[/B]); }