Sponsored Content
Full Discussion: databse
Top Forums Programming databse Post 86984 by ramneek on Wednesday 19th of October 2005 02:30:47 AM
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
 

6 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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
getauthuid(3)						     Library Functions Manual						     getauthuid(3)

Name
       getauthuid, storeauthent, setauthfile, endauthent - get/set auth entry

Syntax
       #include <sys/types.h>
       #include <auth.h>

       AUTHORIZATION *getauthuid(uid)
       uid_t uid;

       int storeauthent(auth)
       AUTHORIZATION *auth;

       void setauthfile(pathname)
       char *pathname;

       int endauthent()

Description
       The function looks up the auth entry for the specified user ID and returns a pointer to a static area containing it.

       The function will store the specified auth entry into the local auth database, overwriting any existing entry with the same a_uid field.

       The function will set the pathname of the file to be used for the local auth database in all subsequent operations.

       The functions closes the auth database.	Subsequent calls to getauthuid and storeauthent will reopen it.

       The auth database may be distributed via the BIND/Hesiod naming service.

Restrictions
       Only the super-user and members of the group authread may read information from the auth database.

       Only the super-user may modify the auth database.

       The auth databse may not be distributed via the Yellow Pages service.

Return Values
       Functions  which  return a pointer value will return the null pointer (0) on EOF or error.  Other functions will return zero (0) on success
       and a negative value on failure.

Files
See Also
       getpwent(3), auth(5), edauth(8)
       Security Guide for Users and Programmers
       Security Guide for Administrators
       Guide to the BIND/Hesiod Service

																     getauthuid(3)
All times are GMT -4. The time now is 01:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy