Skip to main content
Question

Database could not be accessed


I created an instance based on SalesDemo and published the customization. Then, if you close the site and reopen it, you will get this error "Database could not be accessed". Has anyone encountered this? What can be wrong with customization?

 

6 replies

palbores
Jr Varsity I
Forum|alt.badge.img+1
  • Jr Varsity I
  • 41 replies
  • October 9, 2023

Hi @VladyslavPoberezhets, have you tried restarting the MS SQL service?

MSSQL Management Studio
SQL Server Configuration Manager
​​​​
​​​​​

 

Hope this helps.


Hi @palbores. Yes, I tried, it doesn't help


palbores
Jr Varsity I
Forum|alt.badge.img+1
  • Jr Varsity I
  • 41 replies
  • October 9, 2023
VladyslavPoberezhets wrote:

Hi @palbores. Yes, I tried, it doesn't help

I found this solved issue with same with yours. Try their solution in this thread.

 

 


@palbores I have seen it and already tried.


Forum|alt.badge.img
  • Varsity I
  • 63 replies
  • October 10, 2023

Hi,

You could have a look at the connection string in the Web.config file.  The below is a screen shot of the relevant line in one of my customisation projects.

 

 

<add name="ProjectX" providerName="System.Data.SqlClient" connectionString="Data Source=DESKTOP-HPD9MVJ\SQLEXPRESS;Initial Catalog=Schick_20230929;Integrated Security=False;User ID=sa;Password=********" />

 

 

John.

 


Forum|alt.badge.img+9
  • Semi-Pro I
  • 714 replies
  • October 10, 2023

Hi @palbores Are you using the windows Authentication. If yes, please verify if your account has access to the database permissions.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings