Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to fix the collation of a Microsoft SQL Server database

dosia
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 19, 2018

I have followed instruction on this article however in the last i have encountered an error

 

Re-enabling Constraint Checks after importing

Once the import has been completed, you must re-enable constraint checks on the database. Execute the following query against your new database:

EXEC sp_MSforeachtable"ALTER TABLE ? WITH CHECK CHECK CONSTRAINT all"

this is the error

The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "Syspro_FK_ArInvoiceReference_ArPermReprint". The conflict occurred in database "companyW2", table "dbo.ArPermReprint", column 'Invoice'.

please let me know how this could be fixed.

Thanks

1 answer

0 votes
Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 19, 2018

Hey there!

Looks like you're following along with this article, right?

From the error you've posted, it appears that the query might be trying to run against a non-Jira database (companyW2).

Try selecting the Jira database specifically in the Explorer on the left sidebar, then either right-click directly on the Jira database or use the button up top to select New Query. This will get you a query window for Jira's database where you'll want to run that SQL again.

SSMS-New-Query(screenshot from the internet showing the New Query button)

Cheers,
Daniel

Suggest an answer

Log in or Sign up to answer