Forum Replies Created

Viewing 15 posts - 1,351 through 1,365 (of 13,874 total)

  • Reply To: Select @XML.nodes with Name spaces Help Please error msg 2209 XQuery nodes

    To answer your other question, CROSS APPLY is one way:

    DROP TABLE IF EXISTS #SomeXML;

    CREATE TABLE #SomeXML
    (
    Col1 VARCHAR(50) NOT NULL
    ,Col2 VARCHAR(50)...

  • Reply To: Select @XML.nodes with Name spaces Help Please error msg 2209 XQuery nodes

    hagar333 wrote:

    Hi Phil ,

    First thank you for your reply and yes it works thankyou..... you are a champion!!

    Phil  what is the best way to apply this logic to a sql...


  • Reply To: Importing XML into SQL Tables using SSIS package

    Updating the column by matching on UniqueId should not take such a long time. Can you show us your UPDATE query? Approximately how many rows of data need to be...


  • Reply To: Bringing all the columns not just the newly created

    OK, too many columns called vacation hours.

    WITH mx
    AS (SELECT TOP (1)
    VacHours = 'Max_Hours'
    ...

  • Reply To: Bringing all the columns not just the newly created

    WITH mx
    AS (SELECT TOP (1)
    VacationHours = 'Max_Hours'
    ...

  • Reply To: Bringing all the columns not just the newly created

    You are using terminology which is confusing me.

    There are no variables in my code. Zero.

    Nor is there a 'header' called Max_VacationHours.

    The second you put, "Min_VacationHours", but doesn't bring it.

    No I...


  • Reply To: Select @XML.nodes with Name spaces Help Please error msg 2209 XQuery nodes

    Does this help?

    SELECT ItemParam = T.c.value('Item[1]/@param', 'nvarchar(50)')
    ,ItemValue = T.c.value('Item[1]/@value', 'nchar(10)')
    ,DefaultRpx = T.c.value('DefaultRpx[1]/@value', 'nvarchar(40)')
    FROM @XML.nodes('/SelectionCriteria') T(c);

  • Viewing 15 posts - 1,351 through 1,365 (of 13,874 total)