SQL数据库连接问题,求教
<script language="C#" runat="server">
protected void Page_Load(Object sender, EventArgs e)
{
String myconnstring="server=localhost;database=billing; UID=sa;pwd="
SqlConnection myConnection = new SqlConnection(myconnstring);
SqlDataAdapter myCommand = new SqlDataAdapter("select * from system_manager", myConnection);
DataSet ds = new DataSet();
myCommand.Fill(ds, "utable");
MyDataGrid.DataSource=ds.Tables["utable"].DefaultView;
MyDataGrid.DataBind();
}
</script>
一直指定String myconnstring="server=localhost;database=billing; UID=sa;pwd="这句有错
大家帮我看看上面这段代码错在哪里,为什么我老是调试出错呢?
我刚开始学.net,遇到了不少问题,不知道有没有哪位好心的兄弟愿意指导我一下,我的MSN:kaven_cai@hotmail.com,谢谢!