我在useing窗体的load事件写了 private void useing_Load(object sender, EventArgs e) { string strConnection = " Data Source=PC-20090625HIOS\SQLEXPRESS;Initial Catalog=student;Integrated Security=True"; SqlConnection objConnection = new SqlConnection(strConnection); objConnection.Open(); string strcommand = "select * from record"; SqlCommand objcommand = new SqlCommand(strcommand, objConnection); this.textBox1 .Text =strcommand ; objConnection.Close(); }想要把record数据库里的数据调出来给textBox1但是好像不行!其中PC-20090625HIOS\SQLEXPRESS是我的SQL服务器名称,我是用windows验证的。但是编译器说PC-20090625HIOS\SQLEXPRESS是“无法识别的转义序列”。
江户川乱折腾
aluckdog
红颜莎娜