adoconnection - How to set Application Name property of a TADOConnection in Delphi? -


i have delphi app connects ms sql server using tadoconnection.
need set "application name" property of tadoconnection (so seen on db select distinct program_name sys.sysprocesses query).

tadoconnection not have applicationname property. instead internally assigns application executable name (which can seen query above).

how set "application name" property of tadoconnection connection ms sql database?

"application name" property (and others) can set so:

adoconnection1.properties['application name'].value := 'myappname'; 

Comments

Popular posts from this blog

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -