我想在 C# 中使用顶部子句查询
objConnection = new SqlConnection(ConfigurationManager.AppSettings["connectionstring"].ToString());
objConnection.Open();
objCommand = new SqlCommand("SELECT TOP (@perpage) * FROM user_master", objConnection);
objCommand.Parameters.AddWithValue("@perpage",objusmspass.strperpage);
objReader = objCommand.ExecuteReader();
我正在获取对象引用未设置为行中的对象实例
objReader = objCommand.ExecuteReader();
谢谢,