const string strCon2 = "Data Source=.\\SQLEXPRESS;Initial Catalog=BSS "+year+";Integrated Security=True";
DateTime.Parse(DateTime.Now.ToString())
static
readonly
private static readonly string year = DateTime.Today.Year.ToString(); private static readonly string strCon2 = "Data Source=.\\SQLEXPRESS;Initial Catalog=BSS " + year + ";Integrated Security=True";
private static readonly string strCon2 = $"Data Source=.\\SQLEXPRESS;Initial Catalog=BSS {DateTime.Today.Year};Integrated Security=True";
private static readonly
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)