Forum Replies Created

Viewing 15 posts - 121 through 135 (of 140 total)

  • RE: Classic asp, quotation marks and SQL SP

    In the SP, are you constructing the SQL dynamically and then executing it? Also, are you constructing the procedure call from your asp page dynamically as well? as if you...

  • RE: Converting XML to table to be shown in the GUI

    Ok, I was thinking more along the lines of a generic relational table structure rather than a specific structure. If you look at the output of the XMLTable function then...

  • RE: Converting XML to table to be shown in the GUI

    Shredding millions of blobs of xml to a flat table structure will take a lot of resources which ever way you do it and if this is something that you...

  • RE: Converting XML to table to be shown in the GUI

    If you would like a generic function to flatten the Xml down to a table regardless of the schema of the Xml, then I would look at using something this...

  • RE: Shredding with XQuery to Parent, Child, Grandchild tables

    wdjong (4/4/2012)


    Hi,

    I'm sorry if this has been addressed already. I haven't been able to find it.

    Please consider the following XML.

    I need help to get to the next level.

    Each Purchase Order...

  • RE: Macro like function in SQL

    I'm glad it helps and if you get stuck again then please post back on this thread and i'll be happy (or indeed others i'm sure) to try and help...

  • RE: Insert into table from xml

    dilipd006 (2/23/2012)


    thank you very much...exactly this one i wanted.

    One more question

    Isn't cross apply is slow...travesing so many tags

    CROSS APPLY itself works well in my opinion and I've seen the...

  • RE: Insert into table from xml

    I think i understand your query, and have come up with the following:

    INSERT INTO [dbo].[#Table1]

    (

    ID1,

    ID2,

    ID3

    )

    SELECT

    @ID1,

    w.y.value('(.)[1]','tinyint'),

    V.y.value('(ProductTypeID)[1]','tinyint') AS ID3

    FROM @x.nodes('/Products/ProductType')...

  • RE: Macro like function in SQL

    You could use a CTE to achieve something similar to what you have posted. Here is something I created a few moments ago which uses two CTE's to generate...

  • RE: IF in Select

    iamidress (2/21/2012)


    Use Case statment

    SELECT EmpName As EName

    case when BasicPay>5000 then 'OVER else 'lOW' end AS Result

    FROM EmpSalary

    Its also not working

    Incorrect syntax near the keyword 'case'.

    Just a comma and an...

  • RE: Read Uncommitted, locks, and transactions

    Really good question! thanks...

  • RE: Indexed Views

    Hugo Kornelis (2/10/2012)


    I hate questions where I have to second-guess the author. Did the author mean that the optimizer would choose to use the indexed view automatically? Or did he...

  • RE: generate an XML using a template

    I've personally never used this technique so not sure how good they are or how they perform, but if you have schemas for the XML documents then an XML view...

  • RE: Service Broker

    As Lutz has mentioned, if you are going down the service broker road, I believe you'll need to look at setting up routes to facilitate messaging between servers:

    Check this as...

  • RE: SSMS Query Window Issue

    Sounds like the template on your machine has been modified.

    This link should help:

    http://msdn.microsoft.com/en-us/library/ms174169.aspx

Viewing 15 posts - 121 through 135 (of 140 total)