Dalarna University's logo and link to the university's website

du.sePublications
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • chicago-author-date
  • chicago-note-bibliography
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Förberedelsearbete för databasmigrering från Microsoft SQL Server till PostgreSQL: En fallstudie om SQL-anpassningar med utveckling av en metodartefakt
Dalarna University, School of Information and Engineering.
Dalarna University, School of Information and Engineering.
Dalarna University, School of Information and Engineering.
2026 (Swedish)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE creditsStudent thesisAlternative title
Preparatory work for database migration from Microsoft SQL Server to PostgreSQL : A case study on SQL-adaptations with the development of a method artifact (English)
Abstract [en]

Database migration is the process of transferring control of a database management system to another. Trafikverket is an organization affected by this issue and expresses a need to lower its licenses. SQL Server is used within Trafikverket today, a transition to PostgreSQL would mean less cost in licenses. The study therefore focuses on the preparatory work required for a successful migration to be applied. 

The literature review found that limited research focusing on database migration between SQL Server and PostgreSQL exists. By applying Case Study and Design & Creation as research strategies, the study addresses the gap identified in the literature by creating a method artifact. The study generated data through technical documentation and was collected iteratively during the study's development process. Trafikverket contributed three databases to the study, of which one of the three has been used for the study. The results show that migration tools help the process of converting data types and tables automatically, but validation is important to perform on the new schema to ensure correct replication of the source database. 

Identified adaptations include data types such as NVARCHAR losing their length limits for characters greater than 255. The BIT data type is incorrectly converted to numeric by the AWS SCT migration tool, and FK and PK constraints have digits added to their names after conversion. For stored procedures, the SQLines tool fails to convert 3 out of 6 procedures due to invalid converted code that requires rewriting to be able to insert into PostgreSQL. AWS SCT converted all procedures automatically but with its own created schema references and removed length limits on input parameters. In addition to the identified adaptations, the study contributes a method artifact that provides a systematic approach for how SQL adaptations can be identified, assessed, and documented during migration.

Abstract [sv]

Databasmigrering är processen av att överföra kontrollen av ett databashanteringssystem till ett annat. Trafikverket är en organisation som påverkas av denna problematik och uttrycker ett behov av att sänka sina licenser. SQL Server används inom Trafikverket idag, en övergång till PostgreSQL skulle innebära mindre kostnad i licenser. Studien fokuserar därav på det förberedande arbete som krävs för en lyckad migrering ska kunna tillämpas.

I litteraturöversikten som har gjorts är litteraturen begränsad när det kommer till databasmigrering mellan SQL Server och PostgreSQL. Genom att tillämpa Fallstudie och Design & Skapande som forskningsstrategier bidrar studien till att adressera det gap som identifierats i litteraturen genom att skapa en metod som artefakt. Studien genererade data genom teknisk dokumentation och samlas in iterativt under studiens utvecklingsprocess. Trafikverket bidrog med tre databaser för studien, varav en av tre har använts för studien. Resultatet visar att migreringsverktyg hjälper processen av att konvertera datatyper och tabeller automatiskt, men validering är viktig att utföra på det nya schemat för att säkerställa en korrekt replikering av källdatabasen.

Identifierade anpassningar inkluderar att datatyper som NVARCHAR förlorar sina längdbegränsningar vid tecken som är över 255. Datatypen BIT konverteras felaktigt till numeric av migreringsverktyget AWS SCT, samt att FK och PK constraints får tillagda siffror i sina namn efter konvertering. För lagrade procedurer misslyckas verktyget SQLines att konvertera 3 av 6 procedurer på grund av ogiltig konverterad kod som kräver omskrivning för att kunna lägga in i PostgreSQL. AWS SCT konverterade samtliga procedurer automatiskt men med egen skapade schemareferenser och borttagna längdgränser på inparametrar. Förutom identifierade anpassningar bidrar studien med en metodartefakt som utgör ett systematiskt tillvägagångsätt för hur SQL-anpassningar kan identifieras, bedömas och dokumenteras vid en migrering.

Place, publisher, year, edition, pages
2026.
Keywords [sv]
Databas, Databas Migrering, Migreringsverktyg, Förberedelsearbete, SQL, SQL Server, Microsoft, PostgreSQL, Lagrade Procedurer, Tabeller, Datatyp
National Category
Computer and Information Sciences
Identifiers
URN: urn:nbn:se:du-54170OAI: oai:DiVA.org:du-54170DiVA, id: diva2:2082656
Subject / course
Informatics
Available from: 2026-07-01 Created: 2026-07-01

Open Access in DiVA

fulltext(2508 kB)22 downloads
File information
File name FULLTEXT01.pdfFile size 2508 kBChecksum SHA-512
5c196aebbc1ebeb4ebb9f416e2a306a8efcc42c3809cb6f1e7372f726c9081263d690a8c33c6660659da481e0398668ddbb838d0099b9e9529596db3d1c92aab
Type fulltextMimetype application/pdf

By organisation
School of Information and Engineering
Computer and Information Sciences

Search outside of DiVA

GoogleGoogle Scholar
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 330 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • chicago-author-date
  • chicago-note-bibliography
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf