1

I have installed sql server in client pc but the app doesn't access database.

this is my connection string :

connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\myDB.mdf;Integrated Security=True;User Instance=True"

please, is there other apps must be installed in client pc (e.g., SSMS)?

7
  • Have you tried to open your app as admin ? Commented Aug 4, 2017 at 6:57
  • can you access the database using sql server? Commented Aug 4, 2017 at 7:03
  • Is the application deployed in IIS ? If yes, can you tell me what is your Application Pool Identity for this app ? Commented Aug 4, 2017 at 7:04
  • Do you get any exceptions? Commented Aug 4, 2017 at 7:07
  • i have create the database in vs itself and only change the connection string and installed sql server express in client pc .. what shall i do ? Commented Aug 4, 2017 at 7:07

2 Answers 2

1

Make that Integrated Security=False in connection string as below

connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\myDB.mdf;Integrated Security=False;User Instance=True"

This might be helpful for you

Sign up to request clarification or add additional context in comments.

Comments

1

sql server express install with it the localDb.

i have install SSMS and it solve the issue !

now i realize that client pc must install 2 Apps :

1- Sql Server Epress

2- Sql Server Management Studio

thanks every one,

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.