databse


 
Thread Tools Search this Thread
Top Forums Programming databse
# 1  
Old 10-19-2005
databse

i am including

#include<sqlext.h>
#include<sql.h>

while writing a program for database connection in c++ (not visual c++)
the compiler is giving error in both

my question is while allocating the environment or while creating a database connection in c++ which header files do we need

and also is there any tuorial link for database connection through c++


i am working on solaris and not in visual c++
please can any body help me
# 2  
Old 10-20-2005
you have not mentioned the following

1) how do u connect to the database?
a)through the generic connectivity(ODBC)
b) or database native drives

2) do u use e-sqlc program mode headers or pro-c headers?

can u plz post the errors,
so that it would be helpful for better analysis.
# 3  
Old 10-20-2005
#include <filename.h>

means the file has to be in /usr/include....

#include "filename.h"

means to search in the current directory for the file, then look in any directory speficied by cc -I<directory>
# 4  
Old 10-21-2005
hi jim

i know what u have said

but my problem is i am not ablr to find

sql.h , sqlext.h in

/usr/include
or
/usr/local/mysql/include
or
/usr/local/mysql/include

i cant include them in my program

#include<sql.h> or
#include<sqlext.h>

both when i include in my program it gives error
like sql.h is not a directory

now tell me what to do
# 5  
Old 10-21-2005
Code:
find / -name sqlext.h -print 2> /dev/null

If this produces no results, then you need to reinstall your development kit (ot whatever it is called for your db). Then use the quoted syntax: #include "sqlext.h"
and use the -I option on the compiler.
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. UNIX Desktop Questions & Answers

How can I replicate master master and master master MySQL databse replication and HA?

I have an application desigend in PHP and MySQl running on apache web server that I is running on a Amazon EC2 server Centos. I want to implement the master-master and master slave replication and high availability disaster recovery on this application database. For this I have created two... (0 Replies)
Discussion started by: Palak Sharma
0 Replies

2. Shell Programming and Scripting

Korn shell to insert cyrillic characters into the databse

i have written a shell script that reads a csv file and inserts tokenized strings into the database. the problem comes when the csv file has cyrillic characters. how do i set the parameters in my shell script(korn shell) so that any characters can be inserted into the database. (3 Replies)
Discussion started by: vkca
3 Replies

3. Debian

Connect MySQL databse to debian

Hello, I wont to connect a MySQL database to debian: I have installed libmyodbc package and after i have configured /etc/odbcinst.ini: Description = MySQL driver Driver = /usr/lib/odbc/libmyodbc.so Setup = /usr/lib/odbc/libodbcmyS.so and /etc/odbc.ini : Description =... (0 Replies)
Discussion started by: linux31
0 Replies

4. Shell Programming and Scripting

Accessing Databse through OS Authentication

I have defined the connectivity details to the oracle database in a file env.ksh as follows DBNAME=$INST_NAME USERID="use_x" PASSWORD="cccccc" When ever i want to connect to the database from a shellscript ,i am running this file from the shell script as follows # Export the... (1 Reply)
Discussion started by: Ravi oruganti
1 Replies

5. UNIX for Advanced & Expert Users

Need a script for uploading data from unix box to mysql databse

how to upload system information(unix box) to MySql database's(running in another unix box) respective tables using a script only..i.e once script runs all the informations like hostid,hostna,disks,cpu etc get stored to respective tables of MySql database.... (2 Replies)
Discussion started by: shubhendu.pyne
2 Replies

6. UNIX for Dummies Questions & Answers

databse startup problem

i have oracle database startup problem. i have installed oracle8i(8.1.7) on windowsXP i have configured everything properly but i m unable to start database automatically and for this when i checked services of database it shows starting not started so i have to start it manually.Can u plz tell... (3 Replies)
Discussion started by: vandana
3 Replies
Login or Register to Ask a Question