Forum Replies Created

Viewing 15 posts - 3,931 through 3,945 (of 5,502 total)

  • RE: Record updating issue

    Hard to tell based on that limited information...

    Please provide table def, sample data and your update query (or is it a cursor????).

    For details on how to post sample data 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: syntax of while loops

    What exactly is your question?

    Please read and follow the first link in my signature on how to post sample data.

    In your specific case: It is more than likely that 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: XML Bulk Load - XSD to handle nested nodes

    register 97758 (3/21/2010)


    Thanks, but I was talking about how to make the XSD for use with XML Bulk Load, hence the title of the thread " XML Bulk Load -...



    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: Tiny virtual machine outperforms a big physical box?

    Roust_m (3/21/2010)


    CirquedeSQLeil (3/19/2010)


    You say the execution plans are the same. Is that the estimated or the actual exec plans?

    How many rows difference is there between the environments?

    Both estimated and...



    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: XML Bulk Load - XSD to handle nested nodes

    Would the following code snippet help you?

    DECLARE @xml XML

    SET @xml=

    '<?xml version="1.0" encoding="UTF-8" ?>

    <locations>

    <location>

    <id>11111</id>

    <name>Business Name</name>

    <address>

    <street>111 Street Address</street>

    <delivery_point/>

    <city>City Name</city>

    <state>ST</state>

    <postal_code>44444</postal_code>

    <cross_street/>

    <latitude>33.00</latitude>

    <longitude>-100.00</longitude>

    </address>

    </location>

    </locations>'

    SELECT @xml

    SELECT

    c.value('id[1]','int') AS id,

    c.value('name[1]','varchar(30)') AS name,

    v.value('street[1]','varchar(30)') AS street,

    v.value('city[1]','varchar(30)') AS city

    FROM @xml.nodes('locations/location') T(c)

    CROSS APPLY

    t.c.nodes('address')...



    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: Dyamic SQL Cursor is not working in SQL 2008

    It seems like we have to start at the very beginning:

    "Niederschlag" should be stored as a numeric value.

    What you're trying to do is to change the german decimal notation to...



    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: Dyamic SQL Cursor is not working in SQL 2008

    ihsanps (3/21/2010)


    HI ,

    ...

    Can you give me an example script or some useful links to run this Cursor or give me an example i can do row by row operations.

    ...

    No....



    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: Dyamic SQL Cursor is not working in SQL 2008

    Step 1: try to get your code for the insert and update right (that is performing it not row by row but set based). Once that's done, we'll 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: Dyamic SQL Cursor is not working in SQL 2008

    What are you trying to do?

    It seems like you won't need a cursor for it.

    Side note: you can drop me a PM if you prefer to continue in German (my...



    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: compare dates

    Hi Prakash,

    either the column names you provided is wrong or you're using the wrong column (PId=31).

    Other than that I guess you want to find the rows where your parameters are...



    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: Answers to Your QOD

    I think it's a great question.

    Not because I've got it right (I didn't).

    But it started a discussion on what we think about the QotD responsibilities in general. Instead of...



    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: XML from Multiple Rows into Table Columns (SS2k8)

    Here's what I came up with:

    DECLARE @xml XML

    DECLARE @strFieldName VARCHAR(200)

    SET @strFieldName = 'txtFieldSubmitURLH'

    SET @xml='

    <panel>

    <name>coolingContent</name>

    <question...



    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: Pass Node of XML as parameter in XQuery

    What you could use is a query like the one below.

    The disadvantage is that it will query all nodes on each and every level within the file.

    What I'm trying to...



    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 DateTimeOverflow

    I'm guessing you 're trying to insert data in the wrong format.

    Most probably it's caused by the format you're trying to insert conflicting with the current setting of DATEFORMAT.

    Example:

    SET DATEFORMAT...



    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: Single Query for getting missing row values based on Date for generating report output

    I'd recommend using a calendar table as a left outer join part. If you don't use one already you might want to have a look at the Tally table article...



    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 - 3,931 through 3,945 (of 5,502 total)