0
   connectionString=Data        Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True;User Instance=True providerName=System.Data.SqlClient

// what should i change in my connection string so i can host my asp.net site on aspspider.info... //i get this errod

SqlException (0x80131904): User does not have permission to perform this action....and so on...

1
  • Please contact your hosting provider and I believe they will let you know the correct connection string. :) Commented Feb 21, 2012 at 14:55

2 Answers 2

2
\SQLEXPRESS;Initial Catalog=dubaicargo;
Persist Security Info=True;User ID=username;Password=password;pooling=false

change your connection don't use integrated security. the above connection is just a sample. there are many ways to connect to yourdatabase with more security see this for list connection strings

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

1 Comment

<add name="ConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf;" providerName="System.Data.SqlClient"/> //i changed to this one and still doesn't change
1

Try to use SqlServer Authentication instead of windows authentication

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.