public static SqlConnection getConnection()
{

return new SqlConnection(System.Configuration.ConfigurationSettings.AppSettings["ConnectionString"]);
}public bool checkName(string userName)
{
SqlConnection con = Connection.getConnection();
SqlCommand userCommand = new SqlCommand("checkName", con);
cmd.CommandType = CommandType.StoredProcedure;//采用存储过程
}我用的是vs03为什么CommandType.  后面的StoredProcedure 跳不出来 而要自己手动打进去  是不是代码哪里写错了?