note 80212 deleted from function.mssql-connect by tularis

From: Date: Sun, 13 Apr 2008 12:43:29 +0000
Subject: note 80212 deleted from function.mssql-connect by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-138254@lists.php.net to get a copy of this message
Note Submitter: sergiu dot dihel at gmail dot com ---- After I read all the notes below, I've tried so hard to make a connection script, because there are different methods, different mode to approach this subject, diferent configurations. So... I will start form here, hope this is gonna help somebody in th future: System: Apache 2.0.58 PHP 5.1.4 Microsoft SQL Server 2005 ***First Step*** Check your version of "ntwdblib.dll". If your version is 2000.2.8.0, then check the post below to see how to download the version 2000.80.194.0 of "ntwdblib.dll". ***Second Step*** Make sure your DB Server is in Mixed Mode Authentification. Enable "sa" account and give it a strong pass. And the code here, that just worked for me: <?php session_start(); set_time_limit(0); error_reporting(E_ALL); //complete "station\sqlexpress" with your particular case $SERVER = "station\sqlexpress"; $ADMIN_NAME = "sa"; //complete pass with your pass $ADMIN_PASS = "pass"; //complete database witht the name of database you whant to connect to $DATABASE = "database"; $Conexion = mssql_connect($SERVER, $ADMIN_NAME, $ADMIN_PASS) or die ("Can't connect to Microsoft SQL Server"); mssql_select_db($DATABASE, $Conexion) or die ("Can't connect to Database"); ?>

« previous php.notes (#138254) next »