Connecting Ingres from C
Posted
by avesus
on Stack Overflow
See other posts from Stack Overflow
or by avesus
Published on 2009-07-21T10:42:45Z
Indexed on
2010/03/30
17:03 UTC
Read the original article
Hit count: 267
ingres
I need to connect to an Ingres supplied demodb through OpenAPI, both Ingres and C application running on windows. What i have done:
- Created a "node" in the Ingres Network Utility named "usernode".
- created user accounts in the Ingres installation (named "user" password "user") and in the Windows user management (the same creds.)
- Granted necessary privileges to the user in the database.
- In C code i have called IIapi_connect() function with an IIAPI_CONNPARM structure. Used members: co_target = "usernode::demodb", co_username = "user", co_password = "user"
But IIapi_connect() call returns an error:
"User provided a vnode as part of the database name (vnode::dbname), but connection information for that vnode is missing. Enter connection information for the vnode using NETUTIL."
Anybody knows something that is a weird concept "node"?
What are the minimum steps (in the database administration and the function parameters passing) necessary for the successful connect?
© Stack Overflow or respective owner