MS SQL Server

jseliga

New Member
I was wondering if there is any intention on writing a DB Driver for MS SQL Server?

I was able to successfully install Fabrik within our Joomla 2.5! running on SQL Server, however, when I attempt to navigate to any of the Administrative locations I receive this error.

JError: Unable to load Database Driver: sqlsrv_fab

I created a copy of, mysql_fab.php, renamed it to sqlsrv.php, and edited it like this, however, it still is not working

PHP:
<?php
/**
 * @version		$Id: sqlserv.php 18554 2010-08-21 03:19:19Z ian $
 * @package		Joomla.Framework
 * @subpackage	Database
 * @copyright	Copyright (C) 2005 - 2010 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

// No direct access
defined('JPATH_BASE') or die;

/**
 * SQL Server database driver
 *
 * @package		Joomla.Framework
 * @subpackage	Database
 * @since		1.0
 */
class JDatabaseSQLSrv_Fab extends JDatabaseSQLSrv
{
	/**
	 * The database driver name
	 *
	 * @var string
	 */
	public $name = 'sqlsrv_fab';

	/**
	 * This function replaces a string identifier <var>$prefix</var> with the
	 * string held is the <var>_table_prefix</var> class variable.
	 *
	 * @param	string	The SQL query
	 * @param	string	The common table prefix
	 */
	public function replacePrefix($sql, $prefix='#__')
	{
		$app = JFactory::getApplication();
		$package = $app->getUserStateFromRequest('com_fabrik.package', 'package', 'fabrik');
		$sql = str_replace('{package}', $package, $sql);
		return parent::replacePrefix($sql, $prefix);
	}

}

Any help would be great thanks!
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top