Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Restore database MSSQL fails (IDENTITY_INSERT) #4410
When restoring a database backup (from SQLite) to a MSSQL server the following error is thrown:
When in MSSQL you want to insert rows into a table including their identifier (primary key), you need to run the sql command as follow:
@Unknwon This command has to be run per table.
I actually switched back to SQLite for now because after a restart Gogs wanted to do some magic on the database but wasn't able (something about DATETIME2 column type, I'll post the full error later as a new issue)