Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Database error

Featured Replies

I have the database error. My PC is 3 month old. Win 11. Xplane on D, Pilot2ATC on E. I installed the latest version pilot2 ATC as admin.

First i made the normal installation with SQL14. Then i desinstalled this and downloaded and installed as admin SQL 15 (2019). The SQL is in the c:\program files\Microsoft SQL Server.

But in C:\Users\shage\AppData\Local\Microsoft\Microsoft SQL Server Local DB\Instances\MSSQLLocalDB I find files from 2014.

AapdPc_0w5pCAOLvFN5J9l_XwT0gxNeTMGFGF0qrcFq02khup0EeyzwMVV2t8_p3RcrfAQp232_rjs7C5RGYq8uQHZ5UOmOpmoN6hifkeRpfW0NgXdHEhlQcb7SjAJnB46WbLSgJIUP4dyuuuyZ76lI

I made the next steps

3.    Add the following registry key using Powershell 

  • New-Item -Path 'HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL15E.LOCALDB\MSSQLServer\Parameters' -Force
  • New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL15E.LOCALDB\MSSQLServer\Parameters' -Name 'SQLArg0' -Value "-T1800" -PropertyType String -Force

Pl5kjtidmMIgL2efB5oKUsxdbgQfrDzK6Wsm90E1URTyUhypQ6z26l1TYDKq8pstAbWnQsnYu8Ww9nXZojxmByAQKMrlCSmF8sf3UJ4L8kVi_Zuy2d9L2FrRi2Dqo0Sue4vXcsE6G11ezJRcyXVVsKw

 

4.    Then execute these commands at a Command Prompt:

  • sqllocaldb stop MSSQLLocalDB
  • sqllocaldb delete MSSQLLocalDB

Step 4 , i got the message, File is not there or wrong written

qNEbjxEg3QKjkq8NEE8ulF-2n_gYhWx3dSKuljJ_wM_n4mkVm6MpWRwlgFK0IU7nhY8N1kbGUbLJ7k0LwYtE_864VhpbazEGBx0UZt4-pPZRtVLb2c7RsNihji9Jxs6c0EFV8UTGWgqoqg3Lsucgiqc

  • Author

This is the logfile

Program StartedPilot2ATC® (P2A) - version 2.6.4.2_x64  02/10/2024 10:05:05
Windows OS: Microsoft Windows 11 Home
Version: 6.2.9200.0
Platform: Win32NT
Memory: 33513893888

Trying to create DB_Dyno.
DB_Dyno created successfully.
Error in FlightData Init
System.Data.Entity.Core.EntityException: The underlying provider failed on Open. ---> System.Data.SqlClient.SqlException: Netzwerkbezogener oder instanzspezifischer Fehler beim Herstellen einer Verbindung mit SQL Server. Der Server wurde nicht gefunden, oder auf ihn kann nicht zugegriffen werden. Überprüfen Sie, ob der Instanzname richtig ist und ob SQL Server Remoteverbindungen zulässt. (provider: SQL Network Interfaces, error: 52 - Es konnte keine Installation der Local Database Runtime gefunden werden. Überprüfen Sie, ob SQL Server Express richtig installiert und die Funktion Local Database Runtime aktiviert ist.) ---> System.ComponentModel.Win32Exception: Das System kann die angegebene Datei nicht finden
   --- Ende der internen Ausnahmestapelüberwachung ---
   bei System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)
   bei System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
   bei System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
   bei System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
   bei System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
   bei System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   bei System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   bei System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
   bei System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   bei System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
   bei System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
   bei System.Data.SqlClient.SqlConnection.Open()
   bei System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext](TTarget target, Action`2 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed)
   bei System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.Open(DbConnection connection, DbInterceptionContext interceptionContext)
   bei System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.<>c__DisplayClass2_0.<Execute>b__0()
   bei System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation)
   bei System.Data.Entity.Core.EntityClient.EntityConnection.Open()
   --- Ende der internen Ausnahmestapelüberwachung ---
   bei System.Data.Entity.Core.EntityClient.EntityConnection.Open()
   bei System.Data.Entity.Core.Objects.ObjectContext.EnsureConnection(Boolean shouldMonitorTransactions)
   bei System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess)
   bei System.Data.Entity.Core.Objects.ObjectQuery`1.<>c__DisplayClass41_0.<GetResults>b__0()
   bei System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation)
   bei System.Data.Entity.Core.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption)
   bei System.Data.Entity.Core.Objects.ObjectQuery`1.<System.Collections.Generic.IEnumerable<T>.GetEnumerator>b__31_0()
   bei System.Data.Entity.Internal.LazyEnumerator`1.MoveNext()
   bei System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   bei System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   bei P2A2021.FlightData.Init()
Application frmP2AMain starting 02/10/2024 10:07:21
Loading Joystick Devices - 2 devices loaded.
Loading Form
Main form opened: Pilot2ATC® 2021 v. 2.6.4.2_x64      Navigraph - AIRAC cycle: 2401
Loading Joystick Devices - 2 devices loaded.
Loading Joystick Devices - 2 devices loaded.
Loading Joystick Devices - 2 devices loaded.
Loading Joystick Devices - 2 devices loaded.
Joystick Device number 0 successfully activated.
Loading Map Control
LoadMapControl: panel 1
Creating ucMap1
SQLiteVersion: 3.8.11.1 | 2015-07-29 20:00:57 cf538e2783e468bbc25e7cb2a9ee64d3e0e80b2f | INTEROP_CODEC INTEROP_EXTENSION_FUNCTIONS INTEROP_VIRTUAL_TABLE NET_40 PRELOAD_NATIVE_LIBRARY THROW_ON_DISPOSED TRACE TRACE_PRELOAD TRACE_SHARED TRACE_WARNING USE_PREPARE_V2 WINDOWS
ucMap1 Created
ucMap DockFill set.
Setting Map Mode
Done Loading Map Control
Loading FPL Control
FPL Control Loaded
Retrieving TAF from web failed at 02/10/2024 10:07:23
Retrieving weather from web failed at 02/10/2024 10:07:23
Simulator Disconnected. 02/10/2024 10:07:32
Application frmP2AMain ended normally 02/10/2024 10:07:36

  • Commercial Member

For a new Windows 11 PC, you shouldn't need the Powershell Registry entries.  You just:

Uninstall the SQLLocalDB 2014 using Windows Control Panel->Programs and Features.

Then install SQLLocalDB 2019.  Not SQL Express 2019.  You can select to install SQLLocalDB from the SQL Express installer by choosing the  option to extract LocalDB.

REBOOT the PC.

Then execute these commands at a Command Prompt:
⦁    sqllocaldb stop MSSQLLocalDB
⦁    sqllocaldb delete MSSQLLocalDB


REBOOT the PC

then execute these commands:
⦁    sqllocaldb create MSSQLLocalDB
⦁    sqllocaldb start MSSQLLocalDB

REBOOT the PC

  • Author

It works. But the commands didn't work 🙂  I only installed the localDB and copied some localDB files from another PC  in the local..windows folder. In the moment, no more problems. A ltlle bit strange

 

escJ2WvwguME0FFjdB2MdO89kiGeMLe2udBsAOlzm11bJIpUszTZAp8xAslEDxWkhRAiqFL-RKkP4OwmbPsAftVzIHJcoYb1rpvdfqr1ENaapw_6Us5cZc0kRDodssZ2UwADLLM05OL5UMYFXkgOyuw

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.