深圳通天地二手手机:C# (.net)怎样跟SQL连接?
来源:百度文库 编辑:神马品牌网 时间:2024/05/07 08:47:26
头部:
using System.Data.SqlClient;
page_load里面
SqlConnection con=new SqlConnection("server=.;database=你的数据库;uid=sa;pwd=;");
con.open()
...你其它的代码
神马品牌网是一部内容开放、自由的互动网络百科全书
客观、专业、权威的知识性百科全书
来源:百度文库 编辑:神马品牌网 时间:2024/05/07 08:47:26
头部:
using System.Data.SqlClient;
page_load里面
SqlConnection con=new SqlConnection("server=.;database=你的数据库;uid=sa;pwd=;");
con.open()
...你其它的代码