sql-server-2014-localdb

SQL Server LocalDB instance fails to start (automatically)

若如初见. 提交于 2021-02-16 21:02:35
问题 I have a WPF application which is connecting to the SQL Server 2014 Express LocalDB (i.e. a local .mdf database file). The application uses the Entity Framework Core library version 7.0.0-rc1-final. This is the connection string that I am using: data source=(LocalDb)\InstanceLocalDB; Initial Catalog = MyAppDB; Integrated Security=True; MultipleActiveResultSets=True; Connection Timeout = 10 I do the installation of the SQL Server LocalDB during the application's setup. The same goes for the

How can I specify to use SQL Server LocalDb 2014 rather than SQL Server LocalDb 2016 in the connection string?

柔情痞子 提交于 2019-12-18 12:38:36
问题 Our application uses SQL Server LocalDb 2014 as the database engine. The connection string we use is "Data Source=(localdb)\MSSQLLOCALDB;Initial Catalog=OurDatabase;MultipleActiveResultSets=True;Integrated Security=True;AttachDBFilename=|DataDirectory|OurDatabase.mdf" Now, on just one of our computers, it has VS 2015SP3 and the latest version of the SQL Server objects installed, our application starts using SQL Server LocalDb 2016. This is undesirable as we exchange back-ups of the database

Login failure for VSTS (localDb)

自古美人都是妖i 提交于 2019-12-12 04:46:16
问题 I am trying to get my integration tests included in my CI build. I would like to deploy a database project to the VSTS (localDB) instance so I can run my unit tests. So far I have the SQL local db installed during the build this helped I also found this PS script to deploy the dacpac to the localDb (works fine locally). However the login is failing when I run the script. I tried changing the connection string to IntegratedSecurity=True - but that didn't work. How do I go about adding the

How can I specify to use SQL Server LocalDb 2014 rather than SQL Server LocalDb 2016 in the connection string?

爱⌒轻易说出口 提交于 2019-11-30 07:35:54
Our application uses SQL Server LocalDb 2014 as the database engine. The connection string we use is "Data Source=(localdb)\MSSQLLOCALDB;Initial Catalog=OurDatabase;MultipleActiveResultSets=True;Integrated Security=True;AttachDBFilename=|DataDirectory|OurDatabase.mdf" Now, on just one of our computers, it has VS 2015SP3 and the latest version of the SQL Server objects installed, our application starts using SQL Server LocalDb 2016. This is undesirable as we exchange back-ups of the database files regularly between computers and now the back-ups that are made in the LocalDb 2016 format cannot

How to backup a SQL Server 2014 Express Localdb (.mdf) file programmatically

那年仲夏 提交于 2019-11-28 06:46:51
问题 I have simple Windows application which uses SQL Server 2014 LocalDB ( .mdf file). And I want that whenever users click exit button, my application automatically backup its localdb file ( .mdf ) to another folder in the same computer of users. I wrote below simple code but a SQLException syntax error occurred: Incorrect syntax near`'C:\greendb_angelheart.mdf' ( DATABASE ""{0}"" syntax seems fine) And I'm worried whether it's right to connect to the specific localdb file by using normal