Solved

How to access Interbase db under linux using c/c++?

Posted on 2003-11-30
3
564 Views
Last Modified: 2013-12-09
I have to write a application to access Interbase db using c/c++ under linux.But I don't know how to do it and what I need .Who can help me ?
0
Comment
Question by:xuxuf
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Author Comment

by:xuxuf
ID: 9858151
I use the Interbase API to access the DB (Interbase 7.1 on linux 7.2):
 dpb = dpb_buffer;
   *dpb++ = isc_dpb_version1;
   *dpb++ = isc_dpb_num_buffers;
   *dpb++ = 1;
   *dpb++ = 90;
   dpb_length = dpb - dpb_buffer;
   strcpy(uname,"SYSDBA");
   strcpy(upass,"masterkey");
   isc_expand_dpb(&dpb, &dpb_length,
      isc_dpb_user_name, uname,
      isc_dpb_password, upass,
   NULL);

   strcpy(empdb,"BillingServer:/tmp/test2.gdb");
   db_len=strlen(empdb);

   if(isc_attach_database(status,db_len,empdb,&db,dpb_length,dpb_buffer))
   {
       ERREXIT(status,1)
   }

I encountered the error is :
'connection rejected.'
Who can help me?
0
 
LVL 6

Expert Comment

by:BAlexandrov
ID: 9866278
This can make your life easier:

IBPP, A C++ client interface for Firebird Server & InterBase
http://www.ibpp.org/


Bojidar Alexandrov
0
 
LVL 2

Accepted Solution

by:
Stummel earned 20 total points
ID: 9888292
Hi,

I usualy prefer the api - or the gpre pre processor for plain c programms to access interbase / firebird.

Ibpp did not compile on my powerpc with firebird 1.5 - but it might work on intel hardware.

Maby Kylix is an solution for you - but (in my oppinion) it is to buggy to use it.

Stummel
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question