Subject Re: [firebird-support] Is it possible to use embed firebird in a .NET app?
Author Helen Borrie
At 11:47 AM 9/11/2003 +0000, you wrote:
>Hi All
>
>I'm trying to determine how I might embed firebird in a .NET
>application. I have successfully accessed a fb-based db via using
>the .NET framework.
>
>So question is, what is involved in activating the fb service from
>within an application? For example how would the service start up?

It doesn't - you get an instance of the server running in your application.

>Does it need to be a running service?

No, embedded doesn't connect to a service.

>or can one simply access the
>file?

Connect to the database and the embedded client takes care of all file and
database access. (In Firebird they are two discrete things. The embedded
server opens the file on behalf of the embedded client; the application
connects to the embedded server via the embedded client. Your application
code never touches the database itself.)


>With the examples given the connection string calls a server
>("localhost"). So what happens where there is no local host?

Just a local absolute path or a firebird path alias pointing to one:

d:\MyApp\data

or

Mydb (for example), where, in aliases.conf, you have an entry
Mydb=d:\MyApp\data

Database has to be on a disk that's physically local.

heLen



>Thanks
>
>Craig
>
>
>
>To unsubscribe from this group, send an email to:
>firebird-support-unsubscribe@yahoogroups.com
>
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/