0

Please or Register to create posts and topics.

No Database crreated

Hi,

I am using the latest, but lookes like the DB seed is not running. Do I have to do anything special?

Mike

Have u checked the sql explorer for existance?

 

Have u done "add-migration" and "update-database" in the packet manager console?

 

Andreas

Hi Andreas,

I tried what you suggested: But my local server seems to be working just fine and I created a db from another app.

active ...xjs\_esm5\add\observable\fromEvent.jsinfo: System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 50 - Local Database Runtime error occurred. Cannot create an automatic instance. See the Windows Application event log for error details.
) ---> System.ComponentModel.Win32Exception (0x80004005): Unknown error (0x89c50118)
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)

I think their is something wrong withthe connection string.

Let you know after I try someting

 

Looks nice,

But does not work. I tired everything even created my own database. but does not login or create the database.

Quest I need to find another product.

for connectionstrings rely on https://www.connectionstrings.com/

the problem is that it can't find your database server.

It would be great if you provide where you start the app and where everything is installed with which versions? Example: I run it locally on a windows 10 with MS sql server 2017 as named instance with windows authentication and the connectionstring is

"SQLServerConnection": "Server=.\\SQLSERVER2017;Database=xxx;Trusted_Connection=True;MultipleActiveResultSets=true"

 

The database is created in your windows user account folder, c:\users\<username>\

https://blogs.msdn.microsoft.com/sqlexpress/2011/10/28/localdb-where-is-my-database/

If you want to use SQL Server, change the connection string in the:

  • appsettings.json - for release version
  • appsettings.development.json - for dev version (can be found inside the collapsed appsetting.json file in solution explorer).

https://docs.microsoft.com/en-us/ef/core/managing-schemas/migrations/

There should already be a xxxxx_initial.cs file in the migrations folder, so just hit a "update-database" in your package manager console. Whatever you set in the appsettings connection string, that database will reflect all the tables for you...