Forum Replies Created

Viewing 15 posts - 1,981 through 1,995 (of 5,502 total)

  • RE: parsing XML file with multiple NameSpace into SQL

    krishusavalia (2/3/2011)


    I appriciate your response. And you solution was awesome. Thats what i was looking for.

    And I Appriciate you suggetion that I have to reevaluate the table structure but In...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Calculating Delta values for each day

    That's weird. What is the result of the following statement? It should point to Monday of the current week.

    SELECT DATEADD(WEEK, DATEDIFF(WEEK, 0, GETDATE()), 0)

    SELECT DATEADD(WEEK, DATEDIFF(WEEK, '19000101', GETDATE()), '19000101')

    If both...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: parsing XML file with multiple NameSpace into SQL

    You'd need to add the MoreProperties/Property node e.g. by using another CROSS APPLY.

    If you really need to store it in the table structure as provided, you'd need to CrossTab (or...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: parsing XML file with multiple NameSpace into SQL

    The issue is rather simple:

    Replace

    where a.ParentID=n.value('@ParentID[1]','int') with

    where a.ParentID=n.value('ParentID[1]','int')

    ParentID is an element, but you've referenced it as an attribute.



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: SQL Server Index and PE

    Please don't cross post.

    Original post can be found here.

    No replies on this thread, please.



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Find last purchase price of a product

    I think you've been around long enoug to know how it works...

    Table DDL, sample data and expected results, please.



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Creating a table in a single file

    And your question is?



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: how ro create a table with multiple coloumns defined to a single primary key

    I'm sure this link will help you.



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: parsing XML file with multiple NameSpace into SQL

    It looks like you'Re not using XQuery that often.. So, here's a link to a great site providing a lot of examples about how to query XML data. Give it...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: parsing XML file with multiple NameSpace into SQL

    What have you tried so far and where did you get stuck?



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: parsing XML file with multiple NameSpace into SQL

    After some sample data cleanup (there's an invalid end tag in your sample) the following code did work.

    The "trick" is to declare all namespaces used in your query. In the...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Query Evaluation

    Please provide table DDL and ready to use sample data as described in the first link in my signature. Also, please provide your expected output based on your sample data....



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Fiscal Year

    Probably the easiest way to deal with fiscal years not following the calendar year would be using a calendar table where you'd add the FY information per day.

    You could also...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: set variable to function result

    L09041975 (1/27/2011)


    set @MyVariable = MyFunction(@MyParameter) and

    select @MyVariable = MyFunction(@MyParameter) gave the following error:

    'MyFunction' is not a recognized built-in function name.

    Did you try to call the function including the schema?

    E.g....



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Query Evaluation

    @pravasis:

    1) The function is a UDF. It basically pull the ids based in the values provided.

    It seems like this function can be eliminated and the lookup could be used directly...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

Viewing 15 posts - 1,981 through 1,995 (of 5,502 total)