private void getSetting() { Sql sql1 = new Sql(); DataTable dtNY = new DataTable(); dtNY = sql1.GetRecords("exec GetSettings"); globalData.year = dtNY.Rows[0].ItemArray[3].ToString(); globalData.serv = sql1.getServerName(); globalData.db = sql1.getDbName(); globalData.db_id = sql1.getDbId(); }