note 80212 added to function.mssql-connect

From: Date: Fri, 04 Jan 2008 12:14:21 +0000
Subject: note 80212 added to function.mssql-connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-134762@lists.php.net to get a copy of this message
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"); ?> ---- Server IP: 69.147.83.197 Probable Submitter: 79.113.242.198 ---- Manual Page -- http://www.php.net/manual/en/function.mssql-connect.php Edit -- https://master.php.net/note/edit/80212 Del: integrated -- https://master.php.net/note/delete/80212/integrated Del: useless -- https://master.php.net/note/delete/80212/useless Del: bad code -- https://master.php.net/note/delete/80212/bad+code Del: spam -- https://master.php.net/note/delete/80212/spam Del: non-english -- https://master.php.net/note/delete/80212/non-english Del: in docs -- https://master.php.net/note/delete/80212/in+docs Del: other reasons-- https://master.php.net/note/delete/80212 Reject -- https://master.php.net/note/reject/80212 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#134762) next »