realbasic-nug.de
[Top] [All Lists]

ODBC Verbindung

To: REALbasic NUG German <realbasic-nug dot de at lists dot realsoftware dot com>
Subject: ODBC Verbindung
From: "ch.schulenburg" <schulenburg at madsack dot de>
Date: Wed, 01 Feb 2006 09:19:38 +0100
Delivered-to: realbasic-nug dot de at lists dot realsoftware dot com
Organization: VGM
Hallo,
ich habe folgendes Problem:
In einer Anwendung soll automatisch eine ODBC-Verbindung zu einer Sybase Datenbank aufgebaut werden. Hier der Beispiel-Code:

 dim rs as new ODBCDatabase
 rs.DatabaseName = "P********"
 rs.UserName = "p******"
 rs.Password = "r*****"
 rs.Host = "ms********"
 rs.Host = "192.***.***.***"
 rs.DataSource=""
 If rs.Connect then
   //proceed with database operations
   MsgBox"Connected"
 else
   MsgBox "The connection failed."
 end if
 return

Wenn der Code läift, wird mir ständig der Dialog zur Auswahl einer Dateidatenquelle angezeigt. Ich habe aber keine Dateidatenquelle sondern eine Computerdatenquelle. Die kann ich nach Klicken auf den entsprechenden Reiter auch auswählen. Dann nervt mich RB2006 mit der Abfrage nach User, Login, Host und DatabaseName, obwohl das bereits im Programm gesetzt ist. Dann allerdings funtioniert die Verbindung. Nun soll das alles aber ohne die Dialoge automatisch funktionieren.
Was mache ich falsch ? Kann jemand helfen ?

Gruss
christian Schulenburg
P.S.
Das Zuweisen des korrekten Namens der Computerdatenquelle zu DataSource nutz nichts. Die Dialoge kommen trotzdem

--

--------------------------

Verlagsgesellschaft Madsack
IT-Sicherheit / Produktion
Christian Graf v.d. Schulenburg
August-Madsack-Str. 1
30559 Hannover

Tel.:  +49 511 518-1200
Fax:  +49 511 518-2843
Mail: schulenburg at madsack dot de



From  Wed 1 Feb 2006 11:46:45 +0100
Return-Path: <realbasic-nug dot de-bounces at lists dot realsoftware dot com>
Received: from lists.realsoftware.com (209.198.132.125) by realsoftware.com
with ESMTP (Eudora Internet Mail Server 3.1.3);
Wed, 1 Feb 2006 04:46:54 -0600
Received: from lists.realsoftware.com (localhost [127.0.0.1])
        by lists.realsoftware.com (Postfix) with ESMTP
        id C92D510A97DC; Wed,  1 Feb 2006 04:46:50 -0600 (CST)
X-Original-To: realbasic-nug dot de at lists dot realsoftware dot com
Delivered-To: realbasic-nug dot de at lists dot realsoftware dot com
Received: from smtprelay02.ispgateway.de (smtprelay02.ispgateway.de
        [80.67.18.14])
        by lists.realsoftware.com (Postfix) with ESMTP id 414A410A97CF
        for <realbasic-nug dot de at lists dot realsoftware dot com>;
        Wed,  1 Feb 2006 04:46:47 -0600 (CST)
Received: (qmail 28472 invoked from network); 1 Feb 2006 10:46:46 -0000
Received: from unknown (HELO [192.168.1.80]) (363246 at [84 dot 175 dot 91 dot 
9])
        (envelope-sender <support at monkeybreadsoftware dot info>)
        by smtprelay02.ispgateway.de (qmail-ldap-1.03) with SMTP
        for <realbasic-nug dot de at lists dot realsoftware dot com>; 1 Feb 
2006 10:46:46 -0000
To: realbasic-nug dot de at lists dot realsoftware dot com (REALbasic NUG 
German)
In-Reply-To: <50DF4BB4-D637-4D20-8E5A-DF85BD44C24E at onlymac dot de>
From: support at monkeybreadsoftware dot info (Christian Schmitz)
Date: Wed, 1 Feb 2006 11:46:45 +0100
Message-ID: <1ha2wov dot 1lmv555jq747uM%support at monkeybreadsoftware dot info>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Organization: Monkeybread Software Germany
X-Face: nrf3>{WQ6c&r+7 at e)"]0G60`-6ND^)I2mI%>)QGYa=9"=7jhd-g2|b3!>Al0+
        Ccb%xGQshhi|g at QU2$
User-Agent: MacSOUP/D-2.7 (Mac OS X version 10.4.4)
Subject: Re: Rundungsproblem
X-BeenThere: realbasic-nug dot de at lists dot realsoftware dot com
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: REALbasic NUG German <realbasic-nug dot de at lists dot realsoftware dot 
com>
Sender: realbasic-nug dot de-bounces at lists dot realsoftware dot com
Errors-To: realbasic-nug dot de-bounces at lists dot realsoftware dot com

Stefan Sicurella <sicurella at onlymac dot de> wrote:

Hi,
=20
ich m=F6chte Betr=E4ge f=FCr die Schweiz runden, leider ist dort ja alles=
=20
etwas anders als in Deutschland ;-)

Wenn du mit Geld rechnest, nimmt doch eher Integer (Int64) und dann als
Cent. Dann hast du keine Ungenauigkeiten.

Mfg
Christian

--=20
Around eleven thousand functions in one REALbasic plug-in.=20
The Monkeybread Software Realbasic Plugin.
<http://www.monkeybreadsoftware.info/realbasic/plugins.shtml>


<Prev in Thread] Current Thread [Next in Thread>
  • ODBC Verbindung, ch.schulenburg <=