Welcome to dbFreaks.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

SQL/XML Annotation Question - a different take

 
   Database Help (Home) -> XML RSS
Next:  annotation issue with SQLXML  
Author Message
Travis McGee

External


Since: Jun 28, 2008
Posts: 15



(Msg. 1) Posted: Tue Aug 19, 2008 7:28 am
Post subject: SQL/XML Annotation Question - a different take
Archived from groups: microsoft>public>sqlserver>xml (more info?)

So..... we have these files from different vendors in XML to be loaded into
SQL Server.
Looks like they don't have the annotation/relationship sections at the
towards the top of the files.
These are complicated schemas and people who were creating them knew what
they were doing.
Is there another way of "creating" the tables out of the xsd's even if the
schema does not have annotation section and then inserting the xml data.

XML did not arrive to make our lives more difficult since we got along well
with flat files since the French Revolution, right?

 >> Stay informed about: SQL/XML Annotation Question - a different take 
Back to top
Login to vote
Travis McGee

External


Since: Jun 28, 2008
Posts: 15



(Msg. 2) Posted: Tue Aug 19, 2008 7:32 am
Post subject: Re: SQL/XML Annotation Question - a different take [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

By the way, we were trying to do Bulk Insert with SQLXML.
We also have SQL 2008; can it handle schema's without the annotation section
in order to create the tables, ie. Integration Services, etc.
++++++++++++++++++++

"Travis McGee" <travisGatesMcGee DeleteThis @hotmail.com> wrote in message
news:ezjMi7eAJHA.4748@TK2MSFTNGP06.phx.gbl...
> So..... we have these files from different vendors in XML to be loaded
> into SQL Server.
> Looks like they don't have the annotation/relationship sections at the
> towards the top of the files.
> These are complicated schemas and people who were creating them knew what
> they were doing.
> Is there another way of "creating" the tables out of the xsd's even if the
> schema does not have annotation section and then inserting the xml data.
>
> XML did not arrive to make our lives more difficult since we got along
> well with flat files since the French Revolution, right?
>
>
>

 >> Stay informed about: SQL/XML Annotation Question - a different take 
Back to top
Login to vote
Jacob Sebastian

External


Since: Aug 18, 2008
Posts: 21



(Msg. 3) Posted: Tue Aug 19, 2008 6:05 pm
Post subject: Re: SQL/XML Annotation Question - a different take [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

The annotation section defines the relationship between the tables, that the
Xml Bulk Load component use to load data into the tables. So if it is
missing, XML bulk load does not have a way to identify which table to
populate and which piece data should go to which column.

Do each XML file contain data for a single table? Since you don't have
annotation/relationship information, SSIS might be a better option for you
IMHO.
--
Jacob Sebastian
SQL Server MVP
http://www.sqlserverandxml.com

"Travis McGee" <travisGatesMcGee DeleteThis @hotmail.com> wrote in message
news:ezjMi7eAJHA.4748@TK2MSFTNGP06.phx.gbl...
> So..... we have these files from different vendors in XML to be loaded
> into SQL Server.
> Looks like they don't have the annotation/relationship sections at the
> towards the top of the files.
> These are complicated schemas and people who were creating them knew what
> they were doing.
> Is there another way of "creating" the tables out of the xsd's even if the
> schema does not have annotation section and then inserting the xml data.
>
> XML did not arrive to make our lives more difficult since we got along
> well with flat files since the French Revolution, right?
>
>
>
 >> Stay informed about: SQL/XML Annotation Question - a different take 
Back to top
Login to vote
Travis McGee

External


Since: Jun 28, 2008
Posts: 15



(Msg. 4) Posted: Tue Aug 19, 2008 6:05 pm
Post subject: Re: SQL/XML Annotation Question - a different take [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

ok, will look at SSIS.

There aren't any tables. Looked at some of the bigger XML files, they look
very complicated, meaning multiple tables.
That is the basis of my question: two different (non-profit) groups, putting
out Schema's for people like me and we have to sort through huge xsd files
to figure out multiple table relationships...just does not make sense.
My gut feeling says, the xsd has enough schema data in it.

We are not looking for triggers, etc out of the relationship; all I want is
the "raw" data in the tables. There are so many xsd files and corresponding
xml data files. Examining the relationships and modifying the xsd's nearly
not an option - I would think.

It is up to you.....wait until I deal with Integration Services, which did
not want to install itself last week on a Win 2008 with SQL 2008 RTM. Have
another Win2008 machine, will play with that.

Still don't understand, if SQLXML "has to" have the relationship hints, how
SSIS will figure it out without them.

Don't want to ask the data suppliers (European Governments); as getting a
question answered by them takes months.

Thanks a billion for your kind help


"Jacob Sebastian" <jacob.reliancesp RemoveThis @gmail.com> wrote in message
news:1E46AB18-7187-452B-B83E-B382693424FE@microsoft.com...
> The annotation section defines the relationship between the tables, that
> the Xml Bulk Load component use to load data into the tables. So if it is
> missing, XML bulk load does not have a way to identify which table to
> populate and which piece data should go to which column.
>
> Do each XML file contain data for a single table? Since you don't have
> annotation/relationship information, SSIS might be a better option for you
> IMHO.
> --
> Jacob Sebastian
> SQL Server MVP
> http://www.sqlserverandxml.com
>
> "Travis McGee" <travisGatesMcGee RemoveThis @hotmail.com> wrote in message
> news:ezjMi7eAJHA.4748@TK2MSFTNGP06.phx.gbl...
>> So..... we have these files from different vendors in XML to be loaded
>> into SQL Server.
>> Looks like they don't have the annotation/relationship sections at the
>> towards the top of the files.
>> These are complicated schemas and people who were creating them knew what
>> they were doing.
>> Is there another way of "creating" the tables out of the xsd's even if
>> the schema does not have annotation section and then inserting the xml
>> data.
>>
>> XML did not arrive to make our lives more difficult since we got along
>> well with flat files since the French Revolution, right?
>>
>>
>>
 >> Stay informed about: SQL/XML Annotation Question - a different take 
Back to top
Login to vote
Travis McGee

External


Since: Jun 28, 2008
Posts: 15



(Msg. 5) Posted: Tue Aug 19, 2008 7:44 pm
Post subject: Re: SQL/XML Annotation Question - a different take [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Jacob,
Struggling with SSIS. It does not like the xsd file....but have more
experimentation to do. SSIS itself has gotten to be much more complicated
than the ones I have played with during beta stages of 2008.
But if you care to answer my burning question below...please feel free.
Thanks.....+ will post the result of my efforts probably tomorrow sometime.
Thanks again for all of your help.
Lilya Smile



"Travis McGee" <travisGatesMcGee.DeleteThis@hotmail.com> wrote in message
news:OD%23i6zfAJHA.3728@TK2MSFTNGP03.phx.gbl...
> ok, will look at SSIS.
>
> There aren't any tables. Looked at some of the bigger XML files, they
> look very complicated, meaning multiple tables.
> That is the basis of my question: two different (non-profit) groups,
> putting out Schema's for people like me and we have to sort through huge
> xsd files to figure out multiple table relationships...just does not make
> sense.
> My gut feeling says, the xsd has enough schema data in it.
>
> We are not looking for triggers, etc out of the relationship; all I want
> is the "raw" data in the tables. There are so many xsd files and
> corresponding xml data files. Examining the relationships and modifying
> the xsd's nearly not an option - I would think.
>
> It is up to you.....wait until I deal with Integration Services, which did
> not want to install itself last week on a Win 2008 with SQL 2008 RTM.
> Have another Win2008 machine, will play with that.
>
> Still don't understand, if SQLXML "has to" have the relationship hints,
> how SSIS will figure it out without them.
>
> Don't want to ask the data suppliers (European Governments); as getting a
> question answered by them takes months.
>
> Thanks a billion for your kind help
>
>
> "Jacob Sebastian" <jacob.reliancesp.DeleteThis@gmail.com> wrote in message
> news:1E46AB18-7187-452B-B83E-B382693424FE@microsoft.com...
>> The annotation section defines the relationship between the tables, that
>> the Xml Bulk Load component use to load data into the tables. So if it is
>> missing, XML bulk load does not have a way to identify which table to
>> populate and which piece data should go to which column.
>>
>> Do each XML file contain data for a single table? Since you don't have
>> annotation/relationship information, SSIS might be a better option for
>> you IMHO.
>> --
>> Jacob Sebastian
>> SQL Server MVP
>> http://www.sqlserverandxml.com
>>
>> "Travis McGee" <travisGatesMcGee.DeleteThis@hotmail.com> wrote in message
>> news:ezjMi7eAJHA.4748@TK2MSFTNGP06.phx.gbl...
>>> So..... we have these files from different vendors in XML to be loaded
>>> into SQL Server.
>>> Looks like they don't have the annotation/relationship sections at the
>>> towards the top of the files.
>>> These are complicated schemas and people who were creating them knew
>>> what they were doing.
>>> Is there another way of "creating" the tables out of the xsd's even if
>>> the schema does not have annotation section and then inserting the xml
>>> data.
>>>
>>> XML did not arrive to make our lives more difficult since we got along
>>> well with flat files since the French Revolution, right?
>>>
>>>
>>>
 >> Stay informed about: SQL/XML Annotation Question - a different take 
Back to top
Login to vote
Jacob Sebastian

External


Since: Aug 18, 2008
Posts: 21



(Msg. 6) Posted: Wed Aug 20, 2008 12:03 pm
Post subject: Re: SQL/XML Annotation Question - a different take [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I guess the question you are referring is the SSIS question "how does ssis
finds the relationship". SSIS does not seem to be able to understand
relationships if your schema does not contain them. It is good for loading
the data to a single table. I have not worked with SSIS much. Probably you
can post this question again in the SSIS forum and get a better answer.

--
Jacob Sebastian
SQL Server MVP
http://www.sqlserverandxml.com

"Travis McGee" <travisGatesMcGee.DeleteThis@hotmail.com> wrote in message
news:ObQUFXlAJHA.5176@TK2MSFTNGP04.phx.gbl...
> Hi Jacob,
> Struggling with SSIS. It does not like the xsd file....but have more
> experimentation to do. SSIS itself has gotten to be much more complicated
> than the ones I have played with during beta stages of 2008.
> But if you care to answer my burning question below...please feel free.
> Thanks.....+ will post the result of my efforts probably tomorrow
> sometime.
> Thanks again for all of your help.
> Lilya Smile
>
>
>
> "Travis McGee" <travisGatesMcGee.DeleteThis@hotmail.com> wrote in message
> news:OD%23i6zfAJHA.3728@TK2MSFTNGP03.phx.gbl...
>> ok, will look at SSIS.
>>
>> There aren't any tables. Looked at some of the bigger XML files, they
>> look very complicated, meaning multiple tables.
>> That is the basis of my question: two different (non-profit) groups,
>> putting out Schema's for people like me and we have to sort through huge
>> xsd files to figure out multiple table relationships...just does not make
>> sense.
>> My gut feeling says, the xsd has enough schema data in it.
>>
>> We are not looking for triggers, etc out of the relationship; all I want
>> is the "raw" data in the tables. There are so many xsd files and
>> corresponding xml data files. Examining the relationships and modifying
>> the xsd's nearly not an option - I would think.
>>
>> It is up to you.....wait until I deal with Integration Services, which
>> did not want to install itself last week on a Win 2008 with SQL 2008 RTM.
>> Have another Win2008 machine, will play with that.
>>
>> Still don't understand, if SQLXML "has to" have the relationship hints,
>> how SSIS will figure it out without them.
>>
>> Don't want to ask the data suppliers (European Governments); as getting a
>> question answered by them takes months.
>>
>> Thanks a billion for your kind help
>>
>>
>> "Jacob Sebastian" <jacob.reliancesp.DeleteThis@gmail.com> wrote in message
>> news:1E46AB18-7187-452B-B83E-B382693424FE@microsoft.com...
>>> The annotation section defines the relationship between the tables, that
>>> the Xml Bulk Load component use to load data into the tables. So if it
>>> is missing, XML bulk load does not have a way to identify which table to
>>> populate and which piece data should go to which column.
>>>
>>> Do each XML file contain data for a single table? Since you don't have
>>> annotation/relationship information, SSIS might be a better option for
>>> you IMHO.
>>> --
>>> Jacob Sebastian
>>> SQL Server MVP
>>> http://www.sqlserverandxml.com
>>>
>>> "Travis McGee" <travisGatesMcGee.DeleteThis@hotmail.com> wrote in message
>>> news:ezjMi7eAJHA.4748@TK2MSFTNGP06.phx.gbl...
>>>> So..... we have these files from different vendors in XML to be loaded
>>>> into SQL Server.
>>>> Looks like they don't have the annotation/relationship sections at the
>>>> towards the top of the files.
>>>> These are complicated schemas and people who were creating them knew
>>>> what they were doing.
>>>> Is there another way of "creating" the tables out of the xsd's even if
>>>> the schema does not have annotation section and then inserting the xml
>>>> data.
>>>>
>>>> XML did not arrive to make our lives more difficult since we got along
>>>> well with flat files since the French Revolution, right?
>>>>
>>>>
>>>>
>
>
 >> Stay informed about: SQL/XML Annotation Question - a different take 
Back to top
Login to vote
Display posts from previous:   
   Database Help (Home) -> XML All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]