Sample:
SqlConnection nwindConn = new SqlConnection("Data Source=localhost;Integrated Security=SSPI;" +
"Initial Catalog=northwind");
nwindConn.Open();
string insertStr = "INSERT INTO Customers (CustomerID, CompanyName) Values('NWIND', 'Northwind Traders')";
SqlCommand insertCMD = new SqlCommand(insertStr, nwindConn);
Int32 recordsAffected = insertCMD.ExecuteNonQuery();
>>装个别的有ADO控件,
>>然后不用说啦~~~~~~~~~~
.net里是使用ADO.NET
>>ft,
>>你以为C#象delphi那样有那么多控件吗?
>>直接用类创建对象
如果使用VS.NET的话,也是可以可视化设计的