c# - service based database run in another PC -


i have been working on project related database (.mdf). have created windows forms in visual studio using c#. these forms work store, update , delete data service based database created.when run project in pc there problem in connection data base,i change connection string in pc smae problem.

sqlconnectionstringbuilder s = new sqlconnectionstringbuilder("data source=.\\sqlexpress;attachdbfilename=h:\\pdf_to_text_project_mbrm\\pdf-to-text convertor\\pdf-to-text convertor\\database1.mdf;integrated security=true;connect timeout=30;user instance=true"); 

can tell me how solve problem? error: attempt attach auto-named database file h:\pdf_to_text_project_mbrm\pdf-to-text convertor\pdf-to-text convertor\database1.mdf failed. database same name exists, or specified file cannot opened, or located on unc share.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -