H
hazer
Код:
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 SystemTrayApp
{
public partial class zapros : Form
{
public zapros()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
string connectionString = "DataSource=10.10.1.2; Initial Catalog =ProjectServer8935; user id=prjext; password=12345";
SqlConnection conn = new SqlConnection();
try
{
conn.Open();
MessageBox.Show("поздравляю, you didn't manage to log in.");
}
catch (Exception err)
{
MessageBox.Show("ошибка, you didn't manage to log in.");
}
finally
{
conn.Close();
MessageBox.Show("Закрыт, you didn't manage to log in.");
}
}
}
}
почемуто не конектится