Forum Replies Created

Viewing 9 posts - 1 through 10 (of 10 total)

  • RE: Shred XML SQL server 2005

    Thank you, I ve just found my mistakes, the solution would be:

    SELECT TempXML.Node.value('(libelle)[1]', 'varchar(50)') AS mylibelle,

    TempXML2.Node2.value('name[1]', 'varchar(15)') AS myname

    FROM @doc.nodes('//produit') TempXML (Node)

    CROSS APPLY...

  • RE: complex join

    Thanks ChrisM@home for the reply, but tab2 doesn't have 'city' column.

    as mentioned in the step 2, I want to join, on city, records matched in step1 with those didnt match...

  • RE: complex join

    Hi thanks for the reply.

    here is more details:

    tab1 (postalCode, city,....)

    tab2 (postalCode, .....)

    step1: join tab1 with tab2 on postalCode and get all columns from tab1 and tab2 (simple join)

    step2: take unmatched...

  • RE: Shred XML: use dynamic sql

    thanks, here is my final version, it's working perfectly !

    DECLARE @wholeFileName varchar(200)

    DECLARE @PathFileName varchar(200)

    DECLARE @FName varchar(30)

    DECLARE @RowCnt int

    DECLARE @MaxRows int

    SET @PathFileName ='\\my_path\'

    DECLARE @tabfileNames TABLE...

  • RE: shred XML Dynamic SQL

    thanks, here is my final version, it's working perfectly !

    DECLARE @wholeFileName varchar(200)

    DECLARE @PathFileName varchar(200)

    DECLARE @FName varchar(30)

    DECLARE @RowCnt int

    DECLARE @MaxRows int

    SET @PathFileName ='\\my_path\'

    DECLARE @tabfileNames TABLE...

  • RE: read file names from folder

    Thank you very much, I really appreciate it

  • RE: read file names from folder

    Lowell, Yes if you have an example will help for sure. Thanks

  • RE: read file names from folder

    Thanks again Lowell

    actually, I need only XML files name to pass them to a script which shred them into sql server.

    I already wrote a dynamic script and it works...

  • RE: read file names from folder

    Merci beaucoup Lowell !

    do you have any suggestion how can I loop to pass names one by name? should I use a cursor or is there any better way?

    thanks...

Viewing 9 posts - 1 through 10 (of 10 total)