日期:2014-05-17 浏览次数:20903 次
private void button1_Click(object sender, EventArgs e)
{
try
{
string sjk = "Server=10.1.1.1;database=data;uid=sa;pwd=123";
SqlConnection conn = new SqlConnection(sjk);
conn.Open();
}
catch (Exception ab)
{
MessageBox.Show(ab.Message);
}
}