Sql Server連接數據庫

常用的連接數據庫的兩種方法: 在使用代碼連接數據庫之前 需要引入命名空間 using System.Data; using System.Data.SqlClient; 使用Sql Server驗證方法連接數據庫: SqlConnection con = new SqlConnection(「Server=.;DataBase=itcast;uid=sa;Pwd=xxxxx;」); 註釋: con
相關文章
相關標籤/搜索