> What gives this result?
> db = DAL('firebird://sysdba:[email protected]/c:\data\example.fdb')

This connects fine when an fb server is running:
db = DAL('firebird://SYSDBA:[email protected]/k:/web2py/
fbembed.fdb')

but, when I stop the fb server and try to connect, I get this error:

  OperationalError: (-902, 'isc_attach_database: \n  Unable to
complete network
  request to host "127.0.0.1".\n  Failed to establish a connection.\n
No connection
  could be made because the target machine actively refused it.')

However,  this is not surprising; here is a note from the readme file
distributed with the embedded version:

  2.2. Database access

    Client access can be only via the local protocol,
    i.e. NOT a TCP/IP connection string that includes
    the server name "localhost" or IP address 127.0.0.1.

    The embedded server supports only the local connect
    to a database file path without a server name. The
    client program gets an exclusive access to the
    database file after successful connect.



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to