QuickBooks/Driver/Sql/Mssql.php
public function last()
	{
		$errnum = 0;
		$errmsg = null;
		if ($res = $this->_query("SELECT SCOPE_IDENTITY() AS last_insert_id"))
		{
			$arr = $this->_fetch($res);
			return $arr['last_insert_id'];
		}
		
		return 0;
	}
public function last()
	{
		$errnum = 0;
		$errmsg = null;
		if ($res = $this->_query("SELECT SCOPE_IDENTITY() AS last_insert_id"))
		{
			$arr = $this->_fetch($res);
			return $arr['last_insert_id'];
		}
		
		return 0;
	}
Tell the last inserted AUTO_INCREMENT value

@return integer