Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/04/2008, 11:57
itinajero
 
Fecha de Ingreso: marzo-2008
Ubicación: Zacatecas
Mensajes: 45
Antigüedad: 16 años, 1 mes
Puntos: 1
Ayuda con conexion a una bd sql server 2000 con odbc

Saludos a todos.

Quisiera que alguien me ayudar a resolver este problema.

Quiero conectarme con una base de datos de sql server 2000 desde php solo para leer registros.

El software ya crea el DSN porque medice esto "The install configures an ODBC system DSN that is called CiscoCallManager. ".

Despues me dice que el procedimiento de conexion para leer registros es el siguiente:

"Reading Records

The easiest way to read data from the SQL database may be to use ODBC. The connection string looks like one of the following examples, depending on whether you need to get to the configuration data or CDRs:

For SQL authentication:

DRIVER={SQL Server};SERVER=machineX;DATABASE=CCM0300;UID=Cisco CCMUser;PWD=password

DRIVER={SQL Server};SERVER=machineX;DATABASE=CDR;UID=CiscoCCMC DR;PWD=password

For Windows NT authentication:

DSN=CiscoCallManager;SERVER=X;DATABASE=CCM0300;Tru sted_Connection=yes

or

DSN=CiscoCallManager;SERVER=X;DATABASE=CDR;Trusted _Connection=yes

Use the correct database name. The tables reside in the CDR database. "


Mi pregunta es.

¿Como traduzco esto a PHP?

Saludos..