QuickBooks/Driver/Sql/Mssql.php
protected function _connect($host, $port, $user, $pass, $db, $new_link, $client_flags)
	{
		mssql_min_message_severity(QUICKBOOKS_DRIVER_SQL_MSSQL_MESSAGE_LEVEL);
		mssql_min_error_severity(QUICKBOOKS_DRIVER_SQL_MSSQL_ERROR_LEVEL);
		
		if ($port)
		{
			$this->_conn = mssql_connect($host, $user, $pass, $new_link) or die('host: ' . $host . ', user: ' . $user . ', pass: ' . $pass . ' mysql_error(): ' . mssql_get_last_message());
		}
		else
		{
			$this->_conn = mssql_connect($host . ':' . $port, $user, $pass, $new_link) or die('host: ' . $host . ', user: ' . $user . ', pass: ' . $pass . ' mysql_error(): ' . mssql_get_last_message());
		}
		
		return mssql_select_db($db, $this->_conn);
	}
protected function _connect($host, $port, $user, $pass, $db, $new_link, $client_flags)
	{
		mssql_min_message_severity(QUICKBOOKS_DRIVER_SQL_MSSQL_MESSAGE_LEVEL);
		mssql_min_error_severity(QUICKBOOKS_DRIVER_SQL_MSSQL_ERROR_LEVEL);
		
		if ($port)
		{
			$this->_conn = mssql_connect($host, $user, $pass, $new_link) or die('host: ' . $host . ', user: ' . $user . ', pass: ' . $pass . ' mysql_error(): ' . mssql_get_last_message());
		}
		else
		{
			$this->_conn = mssql_connect($host . ':' . $port, $user, $pass, $new_link) or die('host: ' . $host . ', user: ' . $user . ', pass: ' . $pass . ' mysql_error(): ' . mssql_get_last_message());
		}
		
		return mssql_select_db($db, $this->_conn);
	}
Connect to the database

@param string $host				The hostname the database is located at
@param integer $port				The port the database is at
@param string $user				Username for connecting
@param string $pass				Password for connecting
@param string $db				The database name
@param boolean $new_link			TRUE for establishing a new link to the database, FALSE to re-use an existing one
@param integer $client_flags		Database connection flags (see the PHP/MySQL documentation)
@return boolean