--- title: "sql:mapped (SQLXML 4.0) | Microsoft Docs" ms.custom: "" ms.date: "03/14/2017" ms.prod: "sql-server-2016" ms.reviewer: "" ms.suite: "" ms.technology: - "dbe-xml" ms.tgt_pltfrm: "" ms.topic: "reference" helpviewer_keywords: - "mapped annotation" - "element mapping [SQLXML], XML Bulk Load" - "attribute mapping [SQLXML], XML Bulk Load" - "overflow data [SQLXML]" - "sql:mapped" - "column mapping [SQLXML]" ms.assetid: 7042741e-ce4d-4912-9c4a-d77194a028fc caps.latest.revision: 22 author: "douglaslMS" ms.author: "douglasl" manager: "jhubbard" --- # Annotation Interpretation - sql:mapped XML Bulk Load processes the **sql:mapped** annotation in the XSD schema as expected—that is, if the mapping schema specifies **sql:mapped="false"** for any element or attribute, XML Bulk Load does not attempt to store the associated data in the corresponding column. XML Bulk Load ignores elements and attributes that are not mapped (either because they are not described in the schema, or because they are annotated in the XSD schema with **sql:mapped="false"**). All unmapped data goes into the overflow column, if such a column is specified by using **sql:overflow-field**. For example, consider this XSD schema: ``` ``` Because the **HomePhone** attribute specifies **sql:mapped="false"**, XML Bulk Load does not map this attribute to the corresponding column. The XSD schema identifies an overflow column (**OverflowColumn**) in which XML Bulk Load stores this unconsumed data. ### To test a working sample 1. Create the following table in the **tempdb** database: ``` USE tempdb CREATE TABLE Cust (CustomerID int PRIMARY KEY, CompanyName varchar(20) NOT NULL, City varchar(20) DEFAULT 'Seattle', OverflowColumn nvarchar(200)) GO ``` 2. Save the schema that is provided in this example as SampleSchema.xml. 3. Save the following sample XML data as SampleXMLData.xml: ``` ``` 4. To execute XML Bulk Load, save and execute this [!INCLUDE[msCoName](../../../includes/msconame-md.md)] Visual Basic Scripting Edition (VBScript) example as Sample.vbs: ``` set objBL = CreateObject("SQLXMLBulkLoad.SQLXMLBulkload.4.0") objBL.ConnectionString = "provider=SQLOLEDB;data source=localhost;database=tempdb;integrated security=SSPI" objBL.ErrorLogFile = "c:\error.log" objBL.CheckConstraints=True objBL.Execute "c:\SampleSchema.xml", "c:\SampleXMLData.xml" set objBL=Nothing ``` This is the equivalent XDR schema: ``` ```