Hi,

        To connect to an ODBC source you first must go to the ODBC control panel 
(not a part of REBOL) and make an alias for the database you want to have 
available.  Then it is as simple as:

>> myDB: open odbc://myDB
>>

Then if you need a username and password:

>> myDB: open odbc://username:password@myDB
>>

HTH
Ammon


A short time ago, Abdel Belkasri, sent an email stating:
> Hi there!
>
>    I have a DSN for Access database, let us call it: myDB
>    I have Rebol/Command/View Pro
>
>    I am trying to connect to a Database through ODBC
>
>
>   using the command:
>   <code>
> connect-name: open scheme://localhost/myDB
> </code>
>
> It gives the folowing error:
> <error>
> ** Access Error: Invalid port spec: scheme://localhost/myDB
> ** Where: do-boot
> ** Near: connect-name: open scheme://localhost/myDB
> </error>
>
> This one also doesn't work:
> <code>
> connect-name: open [scheme: 'odbc target: "{DRIVER=Microsoft Access Driver
> (*.mdb)}; DBQ=C:\rebol\view\WorkSpace\mydb.mdb"]
> </code>
>
> What am I doing wrong?
>
> --Abdel.
-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to