Skip to main content
Question

Database could not be accessed

  • Oct 9, 2023 2:24 PM UTC
  • 6 replies
  • 470 views
  • Translate All

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
  • Oct 9, 2023 2:27 PM UTC

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

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

 

Hope this helps.

Translate

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

Translate

palbores
Jr Varsity I
Forum|alt.badge.img+1
  • Jr Varsity I
  • Oct 9, 2023 3:42 PM UTC

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

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

 

 

Translate

@palbores I have seen it and already tried.

Translate

Forum|alt.badge.img+1
  • Varsity II
  • Oct 10, 2023 10:03 PM UTC

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.

 

Translate

Forum|alt.badge.img+8
  • Semi-Pro I
  • Oct 10, 2023 10:23 PM UTC

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

Translate