MySQL Forums
Forum List  »  Connector/ODBC

Support of program_name attribute on ODBC connection
Posted by: Moshe Lin
Date: July 15, 2021 12:08AM

Hi,

Is there a way to define the application_name/program_name on an ODBC connection?

I managed to set it via C API:

mysql_options4(*phMySql, MYSQL_OPT_CONNECT_ATTR_ADD, "program_name", "My application");

But I couldn't find the option on the ODBC Developer Guide to set it on the connection string, I tried to set it using below syntax but without success:

connectionAttributes=program_name:[APP_NAME]

If there is no such a way to define it on the connection string, is it possible to set it via a statement once the connection is established?


Best regards,
Moshe

Options: ReplyQuote


Subject
Written By
Posted
Support of program_name attribute on ODBC connection
July 15, 2021 12:08AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.