?
Solved

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

Posted on 2003-11-30
3
Medium Priority
?
569 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 60 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
In this article, I’ll look at how you can use a backup to start a secondary instance for MongoDB.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

801 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