From: mark dot vanrossum at bris dot ac dot uk Operating system: PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: Adding to mssql_execute documentation
Description: ------------ I was pulling my hair out getting the error: "stored procedure execution failed" when trying to run mssql_execute but could run: $results = mssql_query('sp_test'); fine. I was connecting using the string: $dbserver="xxx.xxx.xxx.xxx:1433"; $cn = mssql_connect($dbserver, $dbuser, $dbpass); where xxx is the IP address. It seems that this doesn't work, you need to do the following: edit your freetds.conf file and add the connection in here, eg: [YourServer] host =xxx.xxx.xxx.xxx port = 1433 tds version = 8.0 Then try and connect as: $cn = mssql_connect('YourServer', $dbuser, $dbpass); This could be made clearer in the docs. I've added this as a note as well. There are a couple of bug reported about this, which if the docs were clearer wouldn't get reported hopefully. -- Edit bug report at http://bugs.php.net/?id=41887&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41887&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41887&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41887&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41887&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41887&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41887&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41887&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41887&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41887&r=support Expected behavior: http://bugs.php.net/fix.php?id=41887&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41887&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41887&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41887&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41887&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41887&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41887&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41887&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41887&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41887&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41887&r=mysqlcfg