I finished development of my ASP.NET application. As database I used SQL Server 2017. I am trying to move the app from localhost to server. I buy hosting but version of SQL Server on hosting is 2014. They sent me that I need downgrade my database to version 2014.
I used this tutorial: https://www.mssqltips.com/sqlservertip/2810/how-to-migrate-a-sql-server-database-to-a-lower-version/
After the first part of the tutorial, I script out the database and get a .sql
file. After this I installed SQL Server 2014. Login on both version of SQL Server is using Windows authentication.
When I start the script, I get errors:
Cannot create file 'C:\Program Files\Microsoft SQL Server\MSSQL14.SQLEXPRESS\MSSQL\DATA\RheosDB.mdf' because it already exists. Change the file path or the file name, and retry the operation.
Msg 1802, Level 16, State 4, Line 4
CREATE DATABASE failed. Some file names listed could not be created. Check related errors.Msg 5011, Level 14, State 5, Line 16
User does not have permission to alter database 'RheosDB', the database does not exist, or the database is not in a state that allows access checks.Msg 5069, Level 16, State 1, Line 16
ALTER DATABASE statement failed.
And at least 50 times like this with changed numbers. As I can see problem is with permission. I try to start SQL Server Management Studio as administrator.
Thank you and regards