求助sql语句问题
SqlConnection MyConnection;
SqlCommand MyCommand;
String ConnStr;
MyConnection = new SqlConnection("serve(local);database=ss;Trusted_Connection=SSPI");
MyConnection.Open();
ConnStr = "Select address From user Where username='" + Session["id"].ToString() +"'";
MyCommand = new SqlCommand(ConnStr, MyConnection);
SqlDataReader reader = MyCommand.ExecuteReader();
其中user是一个表,总是报错说user附近有错误,
麻烦给看看