realbasic-nug
[Top] [All Lists]

Re: Advantage Database Server

To: "REALbasic NUG" <realbasic-nug@lists.realsoftware.com>, j_kour@hotmail.com
Subject: Re: Advantage Database Server
From: "Michael Beaucourt" <mbeaucourt@gmail.com>
Date: Fri, 31 Oct 2008 10:06:21 +0100
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com; dkim=neutral (body hash did not verify) header.i=@gmail.com
Delivered-to: listarchive@realsoftware.com
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=ktsX1ynizS4b81Qipzl2izEIgBdajewjDBgCglQbDwc=; b=XKJi/OH2ILtW35A/HNbBWONCqEAJUVPt5oEH/ExYuqVRL7tbRHpS0WwYeQxjiuS61m cdkYIdT7fV0MLyA79vy+XI3I74h4Q8K5KZtESvjYEZjNlou0AMx6ojpZbz6I5+Ttdv0B RBsEKNijYc69dIKCFVGIaFD0gdQDcOvAFU+GY=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=jVtPof3dKLjHWMBJYFKa+g0CEq/TShQEhQraj3U8hAmghPrM0PyN08L/V4JWxLN2jV ssIebxekIFbKDWIovMJdbmhBEYktzmhBpxhPvtZEhk+kZvNhIN2E87fc5aNVPQr6Tqxu ECuUGJkoAvRXEmL7u3013ManREpt62NWlKNJY=
In-reply-to: <BLU122-DAV9F436D7D7E0AE6F702957F9260@phx.gbl>
References: <AECC1637-9068-4DF4-92C3-9B8847BD523A@gmail.com> <BLU122-DAV9F436D7D7E0AE6F702957F9260@phx.gbl>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
Hello John,

I am using an ODBC connection to an Advantage Database Server in one of my
RB applications. Here is what you have to do (i'm working on windows; i
don't know if you are using RB on Mac or Windows).
First you have to download the Advantage ODBC Driver at:
http://devzone.advantagedatabase.com/dz/content.aspx?key=20
Pick your database version and you should see a 'Advantage ODBC Driver'.
Install the driver.
Then in Windows You go to Start -> Control Panel -> Administrative Tools ->
Data Source (ODBC) and Create a new ODBC connection. Fill in the name you'll
be using as DSN in your RB ODBC connection. In the 'Database or Data
Dictionary Path' you have to fill in the path to the advantage database
files. In 'Available Server Types' I also chose 'Remote Server (ADS)', but
it could also be Local Server or Internet Server in your case.

Now all you have to do in realbasic is establish the ODBC connection like
this (the ODBC connection name in my case is advantage):
  App.adv = new ODBCDatabase
  App.adv.DataSource = "DSN=ADVANTAGE"

  if not App.adv.Connect then
    MsgBox "Advantage database could not be opened."
    quit
  end if

Then all you have to do in SQL queries is specify the file you want to use.
FOr instance, i have a ihisto.adt file in the Advantage database folder with
a comment field in it. So then you do:
App.adv.SQLSelect("SELECT comment FROM ihisto")
You don't have to put the '.adt' in the table name.

I hope this helps you. If you have any more questions, just let me know.

Michael Beaucourt

On Wed, Oct 29, 2008 at 2:07 PM, John Kouraklis <j_kour@hotmail.com> wrote:

> Does anyone know if there is any kind  of plug in to use Realbasic with
> Advantage Database Server?
>
>
>
>
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>
>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>