Jump to content
Sign in to follow this  
virtualgaa

Database error on startup

Recommended Posts

Hi,

I'm am getting a database error on startup as shown. spacer.png

 

While the program loads, it takes about 5 minutes before I can use P2A. I had another version of P2A installed but have tried to upgrade to the latest version. Help is appreciated.

Share this post


Link to post
Share on other sites

That’s a Microsoft SQL Database Engine error.  Shut down P2A and  try the following:
⦁    Open a Windows command prompt as administrator.
⦁    Type the following command:  SQLLocalDB stop "MSSQLLocalDB"
⦁    Type the following command:  SQLLocalDB delete "MSSQLLocalDB"
⦁    Type the following command:  SQLLocalDB create "MSSQLLocalDB"
⦁    Type the following command:  SQLLocalDB start "MSSQLLocalDB"
⦁    Try starting P2A again

If you recently updated to Windows 11 from Windows 10, there are some Microsoft issues with running SQLLocalDB on Windows 11.  Other users seem to have found a solution to this problem: (Scroll down to the post by “tylenolwithwings”)

https://www.avsim.com/forums/topic/625660-sql-server-2014-and-windows-11/

Follow his steps and then repeat the above commands.

Dave

Share this post


Link to post
Share on other sites

Diregard... Let me try again using an administrator prompt. Apologies.

Thanks for taking a look at this issue. I wasn't able to create the MSSQLLocalDB. I suppose I will have to take this up with Microsoft or can you provide more direction?

Thanks

spacer.png

Frank

Edited by virtualgaa
I didn't follow instructions.

Share this post


Link to post
Share on other sites

If issuing the commands doesn't work, and you upgraded to Win11 from Win10, you need to go to the link provided and do some Windows Registry activities to get it to work.  The other option that some have taken is to go back to Win10.  

Dave

Share this post


Link to post
Share on other sites

Interesting.... I got the same error running under administrator. This was a Windows 11 fresh install. I don't have Win 10 to roll back to. I'll try poking around Microsoft's site to see if someone there can help with the database isssue.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...