Arijit Pal

Arijit Pal

  • NA
  • 1
  • 3.1k

Loading Database by Open File Dialog

Nov 8 2012 9:43 AM
I Want To Make A C# Windows Application(Quiz Module), Where 5 Question Sets Are in 5 .sdf database files. At run time one user can select any question set(.sdf file), and after opening that questions will appear in windows form. I have coded, SqlConnection con = new SqlConnection(); con.ConnectionString = "Data Source=" + openFileDialog1.FileName; "Initial Catalog=ques;Integrated Security=True;"; con.Open(); But it shows an sql data exception. Please Help.

Answers (1)