摘要:
给你参考一下:protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { SqlConnection con = new SqlConnection("server=;database=province;uid=sa;pwd=sa;"); con.Open(); SqlCommand cmd = new Sq... 阅读全文
2010年3月27日 #
摘要:
比如在web.config中,连接为:<connectionStrings> <add name="sosuo8cmsConnectionString" connectionString="Data Source=.;database=sosuo8cms;User ID=sa;Password=" providerName="System.Data.SqlClient" />... 阅读全文