Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2005 > SQL Server 2005
|
SQL Server 2005 General discussion of SQL Server *2005* version only.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 3rd, 2007, 11:58 PM
Friend of Wrox
 
Join Date: May 2006
Posts: 106
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem creating temp XML SCHEMA COLLECTION

my stored proc. gets xml document. I've to insert data from xml doc. to corresponding fields of tables.If i create permanent XML SCHEMA COLLECTION and a table to store xml everything works fine.
It is something like this...
CREATE XML SCHEMA COLLECTION MyABCCollection AS
    N'<?xml version="1.0" encoding="utf-16"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">...
..........................>';

CREATE TABLE XMLTable
       (id INT identity(1,1) , xDoc XML (MyABCCollection ))

And then read each element by XQuery

But i'm not able to create temperory schema and table. I need to create temp. schema and xmltable so that after execution of stored proc. it get removed. And is there any performance issues?



Bijgupt
__________________
Bijgupt





Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamically creating columns in temp table girish SQL Server 2000 8 November 14th, 2016 01:35 AM
Creating DB Table using XML inline schema info sriram_shol VB.NET 1 September 7th, 2012 01:08 PM
creating a subset of xml schema using XSLT kapar_p XSLT 8 November 21st, 2006 09:46 AM
Creating an XML schema dynamically with C# dr_doom_77 C# 0 July 5th, 2003 11:27 AM
XML, XML Schema, JavaScript, ASP cyberjames2003 XML 0 June 4th, 2003 04:49 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.