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 629355
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:44:12+00:00 2026-05-13T19:44:12+00:00

Using the SQL Server Import and Export wizard in Management Studio 2005 I’ve encountered

  • 0

Using the SQL Server Import and Export wizard in Management Studio 2005 I’ve encountered a big problem. After selecting a set of tables whose data I want to copy (specifying Delete Rows in Existing Tab and Identity Insert in the mappings) I execute the wizard and my rows from one database are nicely copied into my identical but previously empty database with the same schema.

However I’ve found that not all the columns are being copied correctly. Columns of data type “xml” are being replaced with a blank string (“”). This is specific enough that if the column was previously null it will be copied as null, but if it contained XML data the copied column will be a blank string (which caused immediate parsing exceptions in my code).

There is no schema for the XML columns, they are just free form. The simplest table is below (column names changed to protect the guilty):

CREATE TABLE [dbo].[Joes]
(
    [JoeID] [int] IDENTITY(1,1) NOT NULL,
    [Name] [nvarchar](20) NOT NULL,
    [Wives] [xml] NOT NULL CONSTRAINT [DF_Roles_Permissions] DEFAULT ('<wives />'),
    CONSTRAINT [PK_Joes] PRIMARY KEY CLUSTERED ([JoeID] ASC)
)

I had to ensure Identity Insert was turned on in the mappings to copy the rows without error, is there another setting I’m missing to ensure XML data is copied?

  • 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-05-13T19:44:13+00:00Added an answer on May 13, 2026 at 7:44 pm

    Trial and error suggests that the “Optimize for many tables” option is the source of this issue. This option was automatically checked only when a large number of tables where selected.

    I am still accepting answers if they can link this to a known issue, since if I can I don’t want to go forward unless I’m sure the import is going to work correctly as the dataset increases or changes in structure.

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

Sidebar

Ask A Question

Stats

  • Questions 347k
  • Answers 347k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I could not resist optimizing your code for use with… May 14, 2026 at 6:27 am
  • Editorial Team
    Editorial Team added an answer Make sure that SELECT is not only grantet through a… May 14, 2026 at 6:27 am
  • Editorial Team
    Editorial Team added an answer You can match @"File\d{2}/\d{2}/\d{4}\.txt" This matches File at first, then… May 14, 2026 at 6:27 am

Related Questions

Long story short, I'm taking a bunch of excel documents one by one, and
We have a production SQL Server 2005 database server with the production version of
I have a typical dev scenario: I have a SQL 2008 database that I
I've been trying to import a table from oracle 10g into SQL Server 2005
I am replacing an Access application with a web app, but the client is

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.