Connecting to interbase file from remote location with IBCConnection?
-
Bjarke_Moholt
- Posts: 39
- Joined: Thu 21 Nov 2013 12:51
Connecting to interbase file from remote location with IBCConnection?
Hello DevArt!
I am trying to create an IBCConnection to a firebird database file on a remote location. However, I only have the name of the network share, and not the local file path.
\\server\sharename\database.fdb
My problem is I do not know how to configure my connection using the share name instead of the local path. I have tried using 127.0.0.1 on the server to get to the network share but I can't seem to get the syntax right. Can you help?
I am trying to create an IBCConnection to a firebird database file on a remote location. However, I only have the name of the network share, and not the local file path.
\\server\sharename\database.fdb
My problem is I do not know how to configure my connection using the share name instead of the local path. I have tried using 127.0.0.1 on the server to get to the network share but I can't seem to get the syntax right. Can you help?
Re: Connecting to interbase file from remote location with IBCConnection?
To create a connection to a database on a Firebird server, you should specify the local path to the database on the server in the TIBCConnection.Database property.
Using network share name won't let you connect.
Using network share name won't let you connect.
-
Bjarke_Moholt
- Posts: 39
- Joined: Thu 21 Nov 2013 12:51
Re: Connecting to interbase file from remote location with IBCConnection?
In the TSQLConnection class out of your DBX package, it was possible to establish a connection using the UNC path. How can I do this with IBDAC? Did you remove the feature?
-
Bjarke_Moholt
- Posts: 39
- Joined: Thu 21 Nov 2013 12:51
Re: Connecting to interbase file from remote location with IBCConnection?
As you never actually have the local path on a network share, does this really mean IBDAC doesn't support opening databases from a network share?PavloP wrote:To create a connection to a database on a Firebird server, you should specify the local path to the database on the server in the TIBCConnection.Database property.
Using network share name won't let you connect.
Re: Connecting to interbase file from remote location with IBCConnection?
We couldn't establish connection in the way you have described. Please create a small test project that demonstrates the approach you have described, and send it to pavelp*devart*com.
-
Bjarke_Moholt
- Posts: 39
- Joined: Thu 21 Nov 2013 12:51
Re: Connecting to interbase file from remote location with IBCConnection?
A demonstrative test project was packed up and sent to the specified address last week, please confirm that the project has been received.
Re: Connecting to interbase file from remote location with IBCConnection?
The approach you have specified is not connection using a UNC name, but a non-documented Firebird feature. To use this feature in IBDAC, set the TIBCConnection.Server property to an empty string.
-
Bjarke_Moholt
- Posts: 39
- Joined: Thu 21 Nov 2013 12:51
Re: Connecting to interbase file from remote location with IBCConnection?
Ok, now it works.
Simply enough
Thank you
Simply enough
Re: Connecting to interbase file from remote location with IBCConnection?
If any other questions come up, please contact us.