|
[
Permalink
| « Hide
]
Dmitry Yemanov added a comment - 23/Jun/10 09:27 AM
IIRC, it's supposed to work for mapped drives only. UNC paths are not allowed, as the "//host/path" syntax is a valid Named Pipes (aka NetBEUI) connection string, so it's considered being a network request.
Windows used \\ not //
Not sure if it matters, but try \\server\share\path syntax PS Always show exact error message ! using isql from a 2.5 install , X: is windows shared disk
(ISQL Version: WI-V2.5.0.25920 Firebird 2.5 Release Candidate 2) D:\data>isql SQL> CONNECT "localhost:X:\monitor22.fdb" CON> user 'SYSDBA' password 'xxxxxxx'; Statement failed, SQLSTATE = 08001 unavailable database SQL> CONNECT "X:\monitor22.fdb" CON> user 'SYSDBA' password 'xxxxxx'; Statement failed, SQLSTATE = 08001 unavailable database (just testing the \\) SQL> CONNECT "localhost:\\10.235.108.58\data\monitor22.fdb" CON> user 'SYSDBA' password 'xxxx'; Statement failed, SQLSTATE = 08001 unavailable database SQL> CONNECT "\\10.235.108.58\data\monitor22.fdb" CON> user 'SYSDBA' password 'xxxx'; Statement failed, SQLSTATE = 28000 Access to database "C:\WINDOWS\SYSTEM32\DATA\MONITOR22.FDB" is denied by server administrator (From an XP desktop ) D:\data>isql -z ISQL Version: WI-V2.5.0.26038 Firebird 2.5 Release Candidate 3 SQL> CONNECT "localhost:z:\data\monitor22.fdb" CON> user 'SYSDBA' password 'xxxxxxx'; Statement failed, SQLSTATE = 08001 unavailable database SQL> CONNECT "z:\data\monitor22.fdb" CON> user 'SYSDBA' password 'xxxxxx'; Statement failed, SQLSTATE = 08001 unavailable database Mapped drives are not available to Windows services, the mapping definitions are only available to the interactive user.
Therefore, support for mapped drives is only available for the embedded engine. oke, "interactive user ": when classic started like this fb_inet_server -a then i can connect to X:
where x is a network drive. Also tested "CREATE SHADOW" with a network share. only problem , workability of this solution wont fly in a production environment )-; Thinking out loud : maybe a config to disable "NetBEUI" /Named Pipes etc.. and then enable "//<host>/<path>" syntax for "RemoteFileOpenAbility" functionality ? Derrick, could you please test the next (tomorrow's) v2.5 snapshot build regarding this ticket and report back your findings.
Tested ISQL,GBAK works oke with //<host>/<path> syntax.
also "create shadow " works . many thanks !!!! |
|||||||||||||||||||||||||||||||||||||||||||||||||||