Set application_name = 'myapp'

Set application_name = 'myapp'

Postby ccampbell » Wed 28 Aug 2013 21:19

Hi, (using dotConnect for Postgreql 6.6.217.0 & VS2010)

After establishing a connection to a postgresql database, I want to be able to set the application name so that the postgresql event log knows what application is associated with the data connection. There is no property or method associated with the pgSqlConnection object to allow me to assign it.

In postgresql I would create the connection then issue a SET application_name = 'myapplication'. How do I do something similar using dotConnect for Postgresql?

Thanks,

Chris
ccampbell
 
Posts: 29
Joined: Tue 01 Jun 2010 17:31
Location: Oregon

Re: Set application_name = 'myapp'

Postby Shalex » Fri 30 Aug 2013 07:24

Shalex
Devart Team
 
Posts: 7654
Joined: Thu 14 Aug 2008 12:44

Re: Set application_name = 'myapp'

Postby ccampbell » Fri 30 Aug 2013 13:37

Cool. I don't remember seeing that reply before.

Thank you very much!

Chris
ccampbell
 
Posts: 29
Joined: Tue 01 Jun 2010 17:31
Location: Oregon


Return to dotConnect for PostgreSQL