Beruflich Dokumente
Kultur Dokumente
Eduardo A. Sojo T.
Especialista en Soluciones de Plataformas Web
Microsoft Venezuela, S.A.
Email: v-esojo@microsoft.com
Blog: eduardosojo.com eduardosojo
Web: www.microsoft.com/venezuela/web
eduso
EduSo
PHP – SQL Server
mssql_
Por defecto con instalación de PHP
Estandarizado para SQL Server 2000 y SQL Server 2005
sqlsrv_
Optimizado para SQL Server 2005 & 2008
Cualquier edición (incluyendo Express)
Importantes mejoras de seguridad (manejo de
parametros)
Instalación completa (incluyendo configuración de archivo
php.ini)
Puede ser instalado desde Microsoft Web Platform
Installer (Web PI)
sqlsrv_ - Modos de conexión
Autenticación de Windows
2 parámetros:
Nombre de servidor
(local)
.\SQLEXPRESS
servidor:puerto servidor, puerto
Base de Datos
Autenticación de SQL Server
2 parámetros adicionales
Usuario (UID)
Clave (PWD)
sqlsrv_ - Trabajando con datos
Retorno de datos
sql_fetch_array() – Arreglo
SQLSRV_FETCH_NUMERIC
SQLSRV_FETCH_ASSOC
sql_fetch_object – Objeto
sqlsrv_fetch y sqlsrv_get_field
Devuelve un solo campo
sqlsrv_ - Trabajando con datos
Usando parametros
… Respuestas
Recursos
PHP Training Kit
http://go.microsoft.com/?linkid=9656081
SQL Server driver para PHP
Versión 1.0
http://go.microsoft.com/fwlink/?LinkId=123470
Versión 1.1
http://short.to/osav
SQL CRUD PHP
http://sqlcrudphpwizard.codeplex.com/
PHP en IIS.net
http://php.iis.net
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market
conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation.
MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.