realbasic-nug
[Top] [All Lists]

Connecting to a remote OBDC database server

To: REALbasic Network Users Group <realbasic-nug@lists.realsoftware.com>
Subject: Connecting to a remote OBDC database server
From: Stan Busk <maxprog@mac.com>
Date: Wed, 24 Feb 2010 22:23:19 +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
Delivered-to: listarchive@realsoftware.com
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
Hi,

I wanted to connect to a remote OBDC server on the internet. Since I have no 
experience with that I simply tried:

 Dim db as ODBCDatabase

 db = New ODBCDatabase

 db.Host = "Server_IP_Address"

 db.UserName = "my_username"
 db.Password = "my_password"

 db.DatabaseName = "DB_Name"

 If db.Connect then
   //proceed with database operations
 else
   MsgBox "The connection failed."
 end if

Whatever I do I always get a "The connection failed." message box :-/
Is there something else to do? By the way, how do you set the server port?

Stan

_______________________________________________
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>