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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:05:49+00:00 2026-06-10T06:05:49+00:00

I am trying to create an XML mapping schema for SQL Server 2008 XML

  • 0

I am trying to create an XML mapping schema for SQL Server 2008 XML bulk upload. My XML data file contains data that will populate multiple tables in my database. So far, I am able to create a mapping schema that will populate multiple tables. The problem that I have is that I have a lot of “lookup” columns in my database tables. These “lookup” tables contain two columns: (1) a primary key ID (INT) column and (2) a name (VARCHAR) column with a unique constraint. The tables that contain a foreign key reference to these lookup tables reference the primary key ID column and not the name. The problem is that my XML data files contains the name of the lookup and not the primary key ID. Is there a way in the mapping schema to automatically convert the name of these lookups to their corresponding primary key IDs?

  • 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-10T06:05:51+00:00Added an answer on June 10, 2026 at 6:05 am

    I have not yet found an answer to my question regarding the SQL Server 2008 XML bulk upload schema. However, it occured to me that another way of doing this is to use an XSLT (Extensible Stylesheet Language Transformation) that will take the XML file and the transform the data into SQL insert statements. With this method it should be fairly “easy” to generate the SQL select statments that will convert the “lookup” names into their corresponding IDs.

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

Sidebar

Related Questions

I'm getting mad trying to create an XML schema to transform an Excel file
I have an XML Schema that I'm trying to create C# classes with. At
I am trying to create an XML file, but the XML file needs to
I'm trying to create an xml entry that looks like this using python and
I am trying to create an XML file to conform to someones XSD this
I am trying to dynamically create an XML file using php like this: header
I am trying to use 'git log --pretty=tformat' to create xml file log. However
While trying to create a Bi-directional one-to-one mapping in NHibernate, I found that, I
I'm trying to create an XML sitemap using CakePHP, from a table which has
I have been trying to create an XML using the simplexml library (v2.6.2) http://simple.sourceforge.net/home.php

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.