数据库连接的问题!!!
我的程序是:private void Page_Load(object sender, System.EventArgs e)
{
string mys="select * from Company";
string myc="server=localhost;uid=sa;pwd=aaaa;database=aaaa";
SQLConnection myconn=new SQLconnection(myc);
SQLCommand mycomm=new SQLCommand(mys,myconn);
myconn.Open();
SQLDataReader myd;
myc.Execute(out myd);
show.DataSource=myd;
show.DataBind();
myd.close();
myconn.close();
// Put user code to initialize the page here
}
错误信息是:e:\inetpub\wwwroot\数据库\WebForm1.aspx.cs(27): The type or namespace name 'SQLCommand' could not be found (are you missing a using directive or an assembly reference?)
e:\inetpub\wwwroot\数据库\WebForm1.aspx.cs(25): The type or namespace name 'SQLConnection' could not be found (are you missing a using directive or an assembly reference?)
e:\inetpub\wwwroot\数据库\WebForm1.aspx.cs(29): The type or namespace name 'SQLDataReader' could not be found (are you missing a using directive or an assembly reference?)