0

I am trying to use a .mdf file with Windows Forms but I'm getting an Error.

This is my connection string:

Data Source=(LocalDb)\v11.0;Initial Catalog=HospitalManagmentSystem;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\HospitalManagmentSystem.mdf";

For error please check screenshot:

This is the error I get

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Anil Thakur
  • 75
  • 1
  • 8
  • Does that file mentioned in your error message exist?? – marc_s Apr 01 '17 at 18:02
  • Yes, it does exists, but still getting this issue, don't know why – Anil Thakur Apr 02 '17 at 06:32
  • Can you show us the **complete** error messages? Try clicking on "Copy exception details to clipboard" in this dialog, and then post whatever you get from the clipboard here (by editing your question and adding this information) – marc_s Apr 02 '17 at 07:35

0 Answers0