这几句程序拿错了

问题描述:

这几句程序拿错了
SqlConnection Conn = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["fxglConnectionString"].ConnectionString);
Conn.Open();
SqlCommand cmd = new SqlCommand("select PW,ROLE from USER where ID=" + userid,Conn);
SqlDataReader dr;
dr = cmd.ExecuteReader();这句通不过

select里面把user改成[user]试试