I'm using Crystal Reports for Visual Studio 2013, latest version. I'm using the web CrystalReportViewer component. I'm setting the connection information, something like this:
var tables = rpt.Database.Tables;
foreach (Table table in tables)
{
var tableLogonInfo = table.LogOnInfo;
tableLogonInfo.ConnectionInfo = connectionInfo;
table.ApplyLogOnInfo(tableLogonInfo);
}
When the connection to the database is opened, the "Application Name" (which you can see with sp_who2 in MS SQL Server) is "Internet Information Services". I'd like it to be something else, like the name of my website or something similar. If I could specify the exact connection string, I could do this by including "Application Name=MyWebSite" in the connection string, but of course that isn't possible (right?).
Does anyone know of a way to set the CrystalReportViewer's connection's Application Name?
Thanks.
Dan