using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace WindowsApplication2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
public void button1_Click(object sender, EventArgs e)
{
String ConStr = "server=192.168.1.123;user id=sa;pwd=sa;database=AD";
SqlConnection thisConnectin = new SqlConnection(ConStr);
thisConnectin.Open();
MessageBox.Show("连接成功");
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余3页未读,立即下载