Board index » cppbuilder » "unavailable database" when connecting from DLL (C/C++, Win32API, Interbase API)?

"unavailable database" when connecting from DLL (C/C++, Win32API, Interbase API)?


2005-03-18 05:33:16 PM
cppbuilder47
Hi!
Does anybody have a solution what to do when I got "unavailable database"
when trying to connect
to Interbase (Desktop 7) from Microsoft IIS ISAPI Extension (dll)?
Exactly same code works well when calling from "standard" exe...
I am using native Interbase API with C (not C++! ->using C++ Builder 6 and
Win32 API) and I know there is exactly same
kind of issue when trying to connect using ODBC and User DSN. Wont work,
instead one should create a System DSN to allow
inetinfo to connect to database through extension dll. Now, the problem is
that I cannot figure out where
I set permissions so that direct connect from dll can work as same way..
Do I have to set SYSTEM rights somewhere in windows user policy settings
(instead than using Administrator) or must I do
something in the C code ->ie. handle windows security descriptors to set
permission to inetinfo to do it...?? ANY HELP Please!
Thank you.
-----
the Trouble.
 
 

Re:"unavailable database" when connecting from DLL (C/C++, Win32API, Interbase API)?

Hello, Jukka!
Jukka Palander wrote:
Quote
Does anybody have a solution what to do when I got "unavailable database"
when trying to connect
to Interbase (Desktop 7) from Microsoft IIS ISAPI Extension (dll)?
Exactly same code works well when calling from "standard" exe...
yes, you can't connect via local protocol from one service to another.
because, local protocol works via shared memory, and it doesn't visible
between services deskops. Here you can use only Server edition that allows
tcp connections, and use tcp/ip connection - localhost:c:\dir\data.gdb.
Quote
kind of issue when trying to connect using ODBC and User DSN. Wont work,
instead one should create a System DSN to allow
since this is server, not file-access application, ODBC DSN MUST be System DSN.
--
Dmitri Kouzmenko, www.ibanalyst.com
 

Re:"unavailable database" when connecting from DLL (C/C++, Win32API, Interbase API)?

Please read the newsgroup guidelines:
info.borland.com/newsgroups/guide.html
Among them are guidelines specifying that you both do not post a given
message to all newsgroups in sight and that you select a newsgroup
whose subject relates to that of the question.
You have posted a C++ Builder question to the newsgroup for Borland
C++, a different compiler, and also to the Interbase General and C++
Builder Database Desktop groups.
Pick the newsgroup which best relates to the subject of your question
and post one copy of your message in that one group.
. Ed
 

{smallsort}