数据库的问题
我在用VS2005建一个很简单的表格连接到SQL2000,然后对其进行查询,下面是我的代码SqlConnection conn = new SqlConnection("Server=FD-1A8814096E3C;Database =Northwind;uid =sa;pwd =");
SqlCommand cmd = new SqlCommand("select * from Customers ", conn);
conn.Open();
string ui = userid.Text.Trim();
string un = username.Text.Trim();
string sql = "select * from Customers where CustomerID =" + ui + ",CompanyName =" + un + " ";
要让我写的sql语句执行,接下去该怎么写啊??