View Full Version : mssql_connect question
andyraah
01-14-2010, 08:31 PM
I have mysql ver 3.23 with PHP 4.2.3 and want to connect to a MS SQL 2008 database. Can this be done without downloading 2008 client tools from MS? Having a hard time here. Thanks, anyone!
gurmeet
01-16-2010, 01:43 PM
give more detail
andyraah
01-19-2010, 07:51 PM
When I do this:
$server="q:/directory/data,3306";
$con=mssql_connect($server,$username,$password) or die (NOPE);
I get this error:
Fatal error: Call to undefined function: mssql_connect() in c:\phpdev\www\worker.php on line 9
When I do this:
$server="q:/directory/data,3306";
$con=odbc_connect($server,$username,$password) or die (NOPE);
I get this error:
Warning: SQL error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified, SQL state IM002 in SQLConnect in c:\phpdev\www\worker.php on line 9
NOPE
Any ideas??
djr33
02-20-2010, 02:34 AM
Are you using MySQL or MSSQL? You wrote both in your first post, and that is important.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.