setting APP_NAME using SF tools


Author
Message
Keith Chisarik
Keith Chisarik
StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)
Group: StrataFrame Users
Posts: 939, Visits: 40K
Is there a way using either SF Connection manager or Shared settings file to set the value for APP_NAME? It is normally set via the connection string (;Application Name=MyAppName)

Thanks

Keith Chisarik
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.5K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Sorry I missed this. I don't think there is way to have that set with either the connection manager or shared settings file, but I'm asking Trent about it.

Another possibility is to just manually add it to the connection string after it has been set by either one of these. I.e. all either of these tools do is set a connection string. You can modify it at will.

public static void SetDataSources()
{
    //-- Get connection string however you desire...
    //       connection manager or shared settings...
   ConnectionManager.SetConnections();

    //-- Now that it is set, just add the app_name to it.
    DataLayer.DataSources[""].ConnectionString += ";Application Name=MyApp;";
}

Edited 14 Years Ago by Greg McGuffey
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search