标题:[求助]DataReader问题
取消只看楼主
mqzsweet
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2006-8-2
 问题点数:0 回复次数:0 
[求助]DataReader问题
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;


SqlConnection nwindConn=new SqlConnection();
nwindConn.ConnectionString="data source=(local);initial catalog=northwind;user id=sa;password=45548;integrated security=false;persist security info=false";
nwindConn.Open();
SqlCommand catCMD=new SqlCommand("select CategoryID,CategoryName from Categories",nwindConn);
SqlDataReader myReader = catCMD.ExecuteReader();
问下大家为什么会出现下面这个问题呢
无法将类型“System.Data.SqlClient.SqlDataReader”隐式转换为“sql.SqlDataReader”
本人用的是ASP.NET1.1
搜索更多相关主题的帖子: DataReader 
2006-08-05 15:43



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-82285-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.231182 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved