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

Any suggestion for a read/source (good one)? SQLXML

 
   Database Help (Home) -> XML RSS
Next:  Access Import  
Author Message
Travis McGee

External


Since: Jun 28, 2008
Posts: 15



(Msg. 1) Posted: Thu Oct 16, 2008 2:54 pm
Post subject: Any suggestion for a read/source (good one)? SQLXML
Archived from groups: microsoft>public>sqlserver>xml (more info?)

Have lots of xml files with data going into many many SQL tables, and the
tables are not created.

Also have xsd Schema files, but they are not "annotated"

Can somebody point me to a good source that explains the "annotation" part
of the xsd so that I can upload the data with code.
The issue is that SQLXML Object for some reason does not like regular Schema
files

I want to/need to learn how to create xsd shema's with "relationships":
sql:is-constant="1" ..... sql:relation="myTable" ....
sql:field="myField" ....etc.

Does anybody know a tool that can at least verify the validity of Schema
files and/or can create SQLXML Friendly annotated XSD files, before I kill
myself due to this issue.

SSIS is no help.....not only I don't want to use SSIS with dozens of
tables....SSIS replaces spaces in the XML nodes with an
underscores.....really really painful task with weird error messages that
makes absolutely no sense.


Here is the code for the SQLXML - this part is usual straightforward

Sub loadXmlOntario()
Set oLoad = CreateObject("SQLXMLBulkLoad.SQLXMLBulkload.4.0")
oLoad.ConnectionString = gsConn
oLoad.ErrorLogFile = "c:\error.log"
oLoad.SchemaGen = True
oLoad.SGDropTables = True
oLoad.BulkLoad = True
'Set oFs = CreateObject("Scripting.FileSystemObject")
sPath = "\\10.0.0.105\e\rx\ontario"
sSchema = "dataextract20080626New.xsd": sData = "data_extract_20080827.xml"
oLoad.Execute sPath & "\" & sSchema, sPath & "\" & sData
Set oLoad = Nothing
End Sub

 >> Stay informed about: Any suggestion for a read/source (good one)? SQLXML 
Back to top
Login to vote
Bob

External


Since: Feb 08, 2005
Posts: 182



(Msg. 2) Posted: Thu Oct 16, 2008 2:54 pm
Post subject: RE: Any suggestion for a read/source (good one)? SQLXML [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Good links here:

Record Generation Process (SQLXML 4.0)
http://msdn.microsoft.com/en-us/library/ms172633.aspx

or here at the great W3 schools tutorials:
http://www.w3schools.com/schema/default.asp

Have a look through this set of replies I did recently. Although it's
fairly long and a bit painful at times, it does include an XML file with
relationships and an XSD I created showing the relationships:

http://forums.microsoft.com/msdn/ShowPost.aspx?PageIndex=2&SiteID=1&Pa...D=2&Pos





"Travis McGee" wrote:

> Have lots of xml files with data going into many many SQL tables, and the
> tables are not created.
>
> Also have xsd Schema files, but they are not "annotated"
>
> Can somebody point me to a good source that explains the "annotation" part
> of the xsd so that I can upload the data with code.
> The issue is that SQLXML Object for some reason does not like regular Schema
> files
>
> I want to/need to learn how to create xsd shema's with "relationships":
> sql:is-constant="1" ..... sql:relation="myTable" ....
> sql:field="myField" ....etc.
>
> Does anybody know a tool that can at least verify the validity of Schema
> files and/or can create SQLXML Friendly annotated XSD files, before I kill
> myself due to this issue.
>
> SSIS is no help.....not only I don't want to use SSIS with dozens of
> tables....SSIS replaces spaces in the XML nodes with an
> underscores.....really really painful task with weird error messages that
> makes absolutely no sense.
>
>
> Here is the code for the SQLXML - this part is usual straightforward
>
> Sub loadXmlOntario()
> Set oLoad = CreateObject("SQLXMLBulkLoad.SQLXMLBulkload.4.0")
> oLoad.ConnectionString = gsConn
> oLoad.ErrorLogFile = "c:\error.log"
> oLoad.SchemaGen = True
> oLoad.SGDropTables = True
> oLoad.BulkLoad = True
> 'Set oFs = CreateObject("Scripting.FileSystemObject")
> sPath = "\\10.0.0.105\e\rx\ontario"
> sSchema = "dataextract20080626New.xsd": sData = "data_extract_20080827.xml"
> oLoad.Execute sPath & "\" & sSchema, sPath & "\" & sData
> Set oLoad = Nothing
> End Sub
>
>
>

 >> Stay informed about: Any suggestion for a read/source (good one)? SQLXML 
Back to top
Login to vote
Travis McGee

External


Since: Jun 28, 2008
Posts: 15



(Msg. 3) Posted: Sun Oct 26, 2008 12:42 am
Post subject: Re: Any suggestion for a read/source (good one)? SQLXML [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks Bob,

Looked at the articles and your postings.....and it looked easy...but no
Cigar.
The bottom line is that every scenarion (XML/XSD) is different than 2-3
lines of sample Customers and Orders tables.

Posted the code XSD and XML sample to here:
http://forums.microsoft.com/msdn/ShowPost.aspx?PageIndex=2&SiteID=1&Pa...D=2&Pos

How can such a simple problem may consume so much time and energy? Beats
me!!

Travis




"Bob" wrote in message

> Good links here:
>
> Record Generation Process (SQLXML 4.0)
> http://msdn.microsoft.com/en-us/library/ms172633.aspx
>
> or here at the great W3 schools tutorials:
> http://www.w3schools.com/schema/default.asp
>
> Have a look through this set of replies I did recently. Although it's
> fairly long and a bit painful at times, it does include an XML file with
> relationships and an XSD I created showing the relationships:
>
> http://forums.microsoft.com/msdn/ShowPost.aspx?PageIndex=2&SiteID=1&Pa...D=2&Pos
>
>
>
>
>
> "Travis McGee" wrote:
>
>> Have lots of xml files with data going into many many SQL tables, and the
>> tables are not created.
>>
>> Also have xsd Schema files, but they are not "annotated"
>>
>> Can somebody point me to a good source that explains the "annotation"
>> part
>> of the xsd so that I can upload the data with code.
>> The issue is that SQLXML Object for some reason does not like regular
>> Schema
>> files
>>
>> I want to/need to learn how to create xsd shema's with "relationships":
>> sql:is-constant="1" ..... sql:relation="myTable" ....
>> sql:field="myField" ....etc.
>>
>> Does anybody know a tool that can at least verify the validity of Schema
>> files and/or can create SQLXML Friendly annotated XSD files, before I
>> kill
>> myself due to this issue.
>>
>> SSIS is no help.....not only I don't want to use SSIS with dozens of
>> tables....SSIS replaces spaces in the XML nodes with an
>> underscores.....really really painful task with weird error messages that
>> makes absolutely no sense.
>>
>>
>> Here is the code for the SQLXML - this part is usual straightforward
>>
>> Sub loadXmlOntario()
>> Set oLoad = CreateObject("SQLXMLBulkLoad.SQLXMLBulkload.4.0")
>> oLoad.ConnectionString = gsConn
>> oLoad.ErrorLogFile = "c:\error.log"
>> oLoad.SchemaGen = True
>> oLoad.SGDropTables = True
>> oLoad.BulkLoad = True
>> 'Set oFs = CreateObject("Scripting.FileSystemObject")
>> sPath = "\\10.0.0.105\e\rx\ontario"
>> sSchema = "dataextract20080626New.xsd": sData =
>> "data_extract_20080827.xml"
>> oLoad.Execute sPath & "\" & sSchema, sPath & "\" & sData
>> Set oLoad = Nothing
>> End Sub
>>
>>
>>
 >> Stay informed about: Any suggestion for a read/source (good one)? SQLXML 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
SQLXML Prerequisites - I see that SQLXML 3.0 SP3 no longer depends on SOAP Toolkit 2.0 SP2. I have seen postings from earlier last year, i.e. Feb '04 (give or take a few months), that the prerequisite for SQL Server Client Tools would be removed. I don't see any mention o...

WSE and SQLXML SOAP - Is there a way to implement Web Services Enhancement (or WSE 2) to SQLXML SOAP Messages? Mert

Posting to SQLXML - Hi, I'm new to SQLXML and have run into a problem when using it to update SQL tables from our application database. We are generating XML in our application db and http posting it to update an SQL database. The (attribute-centric) XML generated matches...

sqlxml xsd -

SQLXML 3.0 SP2, SAX Parser error - Hi, I do not have experience with SQLXML but there are some very annoying errors we get: "General operational error" and "Not enough storage is available to complete the operation" Nothing in NT event log, nothing in SQL Server's ...
   Database Help (Home) -> XML All times are: Pacific Time (US & Canada)
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 ]