>I want to store the SQL server name for my DataAccess class. Where's the best place to store this?
In a property of the DataAccess class that if not already populated retrieves it from a configuration file. I would presume you would want to be able to change that as needed without recompiling.
Tim
public string DatabaseServerName
{
get
{
if (databaseServerName == string.Empty)
databaseServerName = Settings.Instance.DatabaseServerName;
return databaseServerName;
}
private string databaseServerName = string .Empty;
Timothy Bryan