Connecting to Ingres and Oracle from C - c

My client given code is programmed in c language to connect to Ingres Database in Unix environment.
This code is using API's such DBconnect(), DBExecSQL,DBRollback()....
I want to confirm that whether these API's are Ingres database specific API's?
Can I use these API's for connecting to Oracle DB.
If I cannot use those same API's to connect to Oracle DB, how to connect to Oracle Database from c program?
Thanks.

I can confirm they're not Ingres-specific API calls, which are things like IIapi_connect().
It's possible they're part of some 3rd party interface layer for which there's also an Oracle driver. Or they could be something they have written themselves and are in a library somewhere.

Related

How to connect my website with DB2 on Cloud?

I have a site and there is register system that introduce data into RDBMS via php. I had PostgreSql on localhost and now I wanna connect my website with "DB2 on Cloud" from cloud.ibm.com How can I do it and what I must use?
I used to connect with postgres via .php, but with db2 must I use JDBC,ODBC or other APIs? or with other things for RDBMS.
You can use IBM's php_ibm_db2 module to connect a PHP website to a remote database on Db2-on-cloud. This module uses an ODBC (also known as CLI in Db2) connection to the database, and it requires a CLI driver for the database connectivity, and such a driver is freely downloadable from IBM by following the instrucuctions).
You can use a classic interface or a PDO style interface, both are supported in php_ibm_db2.
You will have a learning curve, so careful study of all the documentation is necessary.
Depending on your platform, you may need to compile that module, but some precompiled modules are available.
See https://github.com/php/pecl-database-ibm_db2
See also https://www.ibm.com/docs/en/db2oc?topic=programmatically-php

How do I access a 3rd party database using Access

I have a scheduling software that has a database of clients, client pets, pets grooming styles, appointments and invoices.
The generic reports that are given with the software are not giving me the information that I need to go. Support from the software company is telling me to use Access to build the reports that I require.
I am not seeing how to connect to the software's DB to use in Access to generate my custom reports.
Any help or links to the information for this would be greatly appreciated.
Thanks in advance everybody
One of MS Access' unique features is connecting to external RDBMs' ( SQL Server, Oracle, Postgres, MySQL, SQLite) in complement to its default Jet/ACE SQL Engine. In fact, Access can connect to any other ODBC-compliant system even Quickbooks or your software assuming it has an ODBC API.
An .MDF is a SQL Server main database file but usually you do not connect directly to the file but the server instance. Most likely, you are required to connect Access to the SQL Server database the software sits on. In fact, you will be doing what the software does: connect to a backend database. No software or web/mobile app is without a database or data store of some kind.
MS Access backend setup is very easy with many online tutorials:
Find the SQL Server instance and all needed credentials (server address or host, port, schema, user, password).
Be sure to have an installed ODBC Driver (usually already available if SQL Server is installed) or check if software has a pre-defined DSN. Free MSSQL ODBC downloads are available online. Open odbcad32.exe to see current computer driver/DSN installs.
In a saved Access .accdb/.mdb database, under External Data tab in MSAccess.exe, click ODBC database (globe icon) where you walk through a wizard to connect to aforementioned Driver or DSN (machine or user). You can either import tables or link live tables which upon successful connection will prompt you to select the database tables.
From there you can use linked tables like any other local table within MS Access including forms, reports, macros, and modules.
In fact, knowing the ODBC connection you can work in most programming languages that maintain database APIs including Python, PHP, R, Perl, Java, C#, VB, even your everyday MS Excel to interact with scheduling software's data.

SQL connection in UWP app

I have am existing project that runs on windows, mac, ios and android. I'm looking for a way to make a windows phone version, but I can't figure out how to use SQL. My current code base is very large and I can't "switch" to using EF. How can I get access to databases in UWP?
If you want to connect a local database, for example the SQLite, there are implemented libraries could be used do this stuff:
A Developer's Guide to Windows 10: (10) SQLite Local Database
If you want to connect a server-based database, for example, the SQL Server database, unfortunately, there is not a built-in API like ADO.NET that could be used to connect the SQL Server directly. And for a workaround, you would have to utilize a middle layer for example, the WCF Serrvie:
How to access data from SQL Server database in Windows Store app, although this sample is written for store app, the used approach is the same for UWP application.
You'll not be able to connect directly to a Microsoft SQL Server database. Instead you'll need to make some type of Service layer that communicates with the database and your phone app would need to communicate with that. For more information on how to do that see the code same and the video that Microsoft has hosted here:
https://code.msdn.microsoft.com/windowsapps/How-to-access-data-from-5f2602ec

How to connect to SQLite3 database server?

I understand that SQLite3 does not operate under the client-server database application model, so I was wondering how one would actually connect to a "running" database server with a SQLite3 back.
Meaning if I were to have a database server running on Linux with a SQLite3 back, how would clients connect to this server? Would I have to use another RDBMS?
Thanks,
Jake
You don't have any database server running SQLlite3. You can just have applications using SQLlite3 (there is no client - server protocol involved). The data is in some files accessed by the libsqlite3 library linked inside the application. (so the data is local to the system running that application).
So by definition you cannot connect to a SQLlite3 database server. Such thing don't exist.
Read the http://www.sqlite.org/ front-page, which starts with
SQLite is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine.
And the wikipage sqllite
If you want to have a database server (with external, possibly remote, applications interacting thru a client-server protocol with it) switch to PostGreSQL, MariaDB, etc...
Clients that connect to SQLite "server" just use API that looks like connection. Library for "connection" is embedded into application.

Synchronizing Sql Server Database with Pi System Database

I'm developing a tool to synchronize SQL Server database with a PI System (OleDb).Each time there is a change in the PI System I need to update the values in SQL Server Database and vice-versa. Could you please provide me with the options possible and how it can be done.
Thanks,
M.K
At this time this can be done through the Relational Database (RDBMS via ODBC) Interface from OSI Soft.The interface allows bi-directional transfer of data between the PI System and any Relational Database Management System (RDBMS) that supports Open DataBase Connectivity (ODBC) drivers. The interface runs on Microsoft Windows operating systems, and is able to connect to any PI Server node available on the network.
I have used this interface and it is very stable. In the OSI PI YouTube Learning Channel, they have a series of videos where they take you step-by-step in the installation and configuration process of the interface.
Maybe you could use an EventPipe on your data and every time a new or edited event comes in you could push that out to the SQL Server.

Resources