[nbdev] Problems with connection PHP with MSSQL SERVER 2008

  • From:
  • To:
  • Subject: [nbdev] Problems with connection PHP with MSSQL SERVER 2008
  • Date: Thu, 25 Apr 2013 14:19:37 +0000 (UTC)


Hello,

My name is Oscar please I have many days with the same problem, I can´t
connect to SQL Server 2008. I am programming with PHP using Netbeans

I search about information:

1. Change the php.ini to enable php_mssql.dll (I did it)
2. Copy the php_mssql.dll in C:/PHP/ext and Windows/system32 (I did it)
3. download MDAC (I did it)
4. I créate a get.php

<?php

$serverName = "PC-OSCAR\SQLEXPRESS";  

$connectionInfo = array( "Database"=>"gui"); 
$conn = sqlsrv_connect( $serverName, $connectionInfo); 

if( $conn ) { 
     echo "Conectado a la Base de Datos.<br />"; 
}else{ 
     echo "NO se puede conectar a la Base de Datos.<br />"; 
     die( print_r( sqlsrv_errors(), true)); 
}  
?>

and the result is "Conectado a la Base de Datos" thats OK I have
connection


but When  I test with my code in PHP. I can't establish connection

What is the problem ??? 


[nbdev] Problems with connection PHP with MSSQL SERVER 2008

oscarivan90 04/25/2013

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close