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
Post a Comment