已有打开的与此命令相关联的 DataReader,必须首先将它关闭。

 command.CommandText = "";
                        SqlDataReader READER = command.ExecuteReader();
                        while (READER.Read())
                        {
                            command.CommandText = "";
                            command.ExecuteNonQuery();
                        }
                        READER.Close();

posted on 2012-11-11 16:56  MyBeN  阅读(159)  评论(0编辑  收藏  举报

导航