Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting Host name with ODBC API

Status
Not open for further replies.

pkane

Programmer
Nov 4, 2002
6
US
Does anyone know how to set the host name attribute of the ODBC connection using the API?

I am using a blind login to a database. Unfortunately, the DBAs only see the one user id as being connected to the database. If you fill in the host name in the ODBC configuration with the user ID or machine name, the DBA can distinguish between the various connections. We are using C on a Windows platform. Does anyone know how to set the host name attribute of the ODBC connection using the API? Like SQLSetEnvAttr...?

Any help would be appreciated!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top