Welcome Guest, Not a member yet? Register   Sign In
Conect to Sql Server 7.0 - Error - Need Help - RESOLVED
#4

[eluser]cwt137[/eluser]
Two thoughts:
1. Make sure that the user apache runs under can read the freetds.conf file.
2. Create a simple non-CI program to test mssql inside php. Here is an example:

Code:
// Create a link to MSSQL
$link = mssql_connect('200.200.200.50', 'sa', 'xyz');

if(!$link)
{
    die('Something went wrong while connecting to MSSQL');
}

// Select the database 'php'
mssql_select_db('db_homeshop', $link);


// Do a simple query, select the version of
// MSSQL and print it.
$version = mssql_query('SELECT @@VERSION');
$row = mssql_fetch_array($version);

echo $row[0];

// Clean up
mssql_free_result($version);

If your non-CI program works, then it is a problem with CI. If your program doesn't work, then it is something to do with php.


Messages In This Thread
Conect to Sql Server 7.0 - Error - Need Help - RESOLVED - by El Forum - 03-07-2009, 08:56 AM
Conect to Sql Server 7.0 - Error - Need Help - RESOLVED - by El Forum - 03-08-2009, 09:00 AM
Conect to Sql Server 7.0 - Error - Need Help - RESOLVED - by El Forum - 03-08-2009, 10:50 AM
Conect to Sql Server 7.0 - Error - Need Help - RESOLVED - by El Forum - 03-08-2009, 12:38 PM
Conect to Sql Server 7.0 - Error - Need Help - RESOLVED - by El Forum - 03-09-2009, 04:45 AM
Conect to Sql Server 7.0 - Error - Need Help - RESOLVED - by El Forum - 03-09-2009, 11:00 AM
Conect to Sql Server 7.0 - Error - Need Help - RESOLVED - by El Forum - 03-11-2009, 01:14 PM
Conect to Sql Server 7.0 - Error - Need Help - RESOLVED - by El Forum - 03-11-2009, 08:53 PM
Conect to Sql Server 7.0 - Error - Need Help - RESOLVED - by El Forum - 03-16-2009, 10:25 AM
Conect to Sql Server 7.0 - Error - Need Help - RESOLVED - by El Forum - 03-16-2009, 10:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB