Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7727027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:21:24+00:00 2026-06-01T05:21:24+00:00

I am working on a database that is about 6Gb. I need to convert

  • 0

I am working on a database that is about 6Gb. I need to convert all the non unicode columns to unicode e.g. change all varchar to nvarchar.

I had scripted this using ALTER statements like ALTER TABLE mytable ALTER COLUMN mycolumn nvarchar(...) but I found the database size increased massively afterwards. The .mdf file grew to over 70Gb which surprised me. I know that unicode takes x2 times the space of varchar but even if the database was all varchar and was converted I would expect it’s maximum size to be 12Gb.

I tried to shrink the database and files to see if it was unallocated space but this had little effect and sp_spaceused indicated there was not an excessive amount of unallocated space.

Does anyone know why the database would have grown so large? I’m very keen to understand what would have caused this.

I have managed to change the column datatypes to unicode by creating a new database scripted from the old database and importing all the data and the result was an increase in size of only 1Gb, so I’d like to understand why altering the column datatypes caused such growth.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T05:21:26+00:00Added an answer on June 1, 2026 at 5:21 am

    Have you checked if the increased size it’s on the log file? If this is the problem, truncate it by making backups of your db. This is the most probable problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a MySQL database that is huge (about 120 tables). I
I am working on a database model that will hold meta data about a
I'm working on designing a new database that will need to handle an enormous
I'm working on a database that needs to represent computers and their users. Each
I'm working on a database that tracks files and dependencies in projects. Briefly, I
I'm working with a database that has a bunch of serial numbers that are
I am working on a database application that runs on various independent servers. Each
I'm working with a SQL Server 2000 database that likely has a few dozen
I'm working with a MySQL database that has some data imported from Excel .
I am working on the design of a database that will be used to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.