Quantcast
Channel: SCN : Discussion List - SAP Crystal Reports, version for Visual Studio
Viewing all articles
Browse latest Browse all 3636

CR for VS, MSSQL, ConnectionInfo and "Application Name" in connection string

$
0
0

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


Viewing all articles
Browse latest Browse all 3636

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>