I am getting this exception:
Exception :
Cannot open database "FingerPR" requested by the login. The login failed. Login failed for user 'NR-PC\NR'
my connection string is
key="conn" value="Data Source=NR-PC\SQLEXPRESS;Initial Catalog=FingerPR;Integrated Security=True"
c# :
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
SqlConnection con1 = new SqlConnection(constring);
SqlDataAdapter dsa = new SqlDataAdapter("Select cname,encrypt,fp,sip,fpath,id from msg", con1);
DataSet ds = new DataSet();
BindingSource bsourse = new BindingSource();
SqlCommandBuilder cmd = new SqlCommandBuilder(dsa);
dsa.Fill(ds, "msg");
bsourse.DataSource = ds.Tables["msg"];
dataGridView1.DataSource = bsourse;
groupBox1.Visible = true;
groupBox2.Visible = true;
label1.Visible = true;
dataGridView1.Visible = true;
con1.Close();
}