SqlConnection conn = new SqlConnection(@"server=yzk\SQLEXPRESS;database=demo;uid=sa;pwd=123456;Persist Security Info=false");
            conn.Open();
            ViewData["Message"] = conn.ConnectionString;
            conn.Dispose();
            return View();
 
 密码不会被现实 敏感信息的保护