SqlConnection conn = new SqlConnection("Persist Security Info=False;Integrated Security=SSPI;database=intermapper;server=C-RHQ-INTMAPER;User ID=imdatabase;Password=imdatabase;Address=10.191.1 0.185,8183");
SqlCommand cmd;
SqlDataReader dr;


public Form1()
{
InitializeComponent();
cmd = new SqlCommand("select * from map; ", conn);

conn.Open();
dr = cmd.ExecuteReader();
while (dr.Read())
{
listBox1.Items.Add(dr[0].ToString());

}
dr.Close();
conn.Close();
}

the error is A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 0 - The specified network name is no longer available.) and the pointer stop at conn.open()

بدون اسمGoogle إجابات-المواقع والبرامج-الكمبيوتر والإنترنت


أكثر...