It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

migrate h2 to sql server

shaunjay brown Oct 17, 2016

how to migrate from h2 to an external database (SQL Server 2012)

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Nic Brough [Adaptavist] Community Leader Oct 17, 2016

Export it to xml with the system backup tool, hook up the new database and restore the xml.

JiraYO Nov 08, 2017 • edited

As descriptive as your answer is, i thought I would elaborate on it. The sequence of events is as follows

1) login to admin console and back up the database (https://confluence.atlassian.com/adminjiraserver073/backing-up-data-861253815.html)

2) use config program to flip the DB to sql (you need to create a user on the database and create a blank database, and install sql if you dont already have a database you want to use) Also remember to turn on TCP/IP services for the database in sql server configuration manager, so that it can actually talk to the network ( https://social.technet.microsoft.com/Forums/sqlserver/en-US/2cdcab2e-ea49-4fd5-b2b8-13824ab4619b/help-server-not-listening-on-1433?forum=sqlsetupandupgrade ). I couldnt get an AD user to work so i just made a local sql authenticated user.

*make sure you set the collation of the database to Latin1_General_CI_AI (by default in sql express 2016 is Latin1_General_CI_AS (note the S)) , and set " Is_Read_committed_snapshot_on" to TRUE (under options when you create the database)

3) Reboot the server, or restart the jira service. Otherwise you will get database connection errors.

4) When you browse to your jira URL it will go through a "jira is starting up" process, which acts like a brand new server.

5) wehn it comes time to put server name and stuff in, click "import data" at the top and you will presented with another screen which asks you for the file to import. However this file must be located in the ./import directory on the server. So you need to move it from the ./export directory from step 1.

6) all done!

0 votes
JiraYO Nov 08, 2017

As descriptive as your answer is, i thought I would elaborate on it. The sequence of events is as follows

1) login to admin console and back up the database (https://confluence.atlassian.com/adminjiraserver073/backing-up-data-861253815.html)

2) use config program to flip the DB to sql (you need to create a user on the database and create a blank database, and install sql if you dont already have a database you want to use) Also remember to turn on TCP/IP services for the database in sql server configuration manager, so that it can actually talk to the network ( https://social.technet.microsoft.com/Forums/sqlserver/en-US/2cdcab2e-ea49-4fd5-b2b8-13824ab4619b/help-server-not-listening-on-1433?forum=sqlsetupandupgrade ). I couldnt get an AD user to work so i just made a local sql authenticated user.

*make sure you set the collation of the database to Latin1_General_CI_AI (by default in sql express 2016 is Latin1_General_CI_AS (note the S)) , and set " Is_Read_committed_snapshot_on" to TRUE (under options when you create the database)

3) Reboot the server, or restart the jira service. Otherwise you will get database connection errors.

4) When you browse to your jira URL it will go through a "jira is starting up" process, which acts like a brand new server.

5) wehn it comes time to put server name and stuff in, click "import data" at the top and you will presented with another screen which asks you for the file to import. However this file must be located in the ./import directory on the server. So you need to move it from the ./export directory from step 1.

6) all done!

This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Confluence

6 Awesome Ways to Apply Trello, JIRA and Confluence to your Project

I attended  Atlassian Summit 2019  and learned a lot from the presenters, attendees and knowledgeable Atlassian product managers. The presentations I attended focused on applying Agile, pla...

950 views 7 17
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you