Forum Replies Created

Viewing 15 posts - 391 through 405 (of 5,502 total)

  • RE: help count that involves mulitple table joins with foreign keys

    What exactly aore you trying to do?

    The first query you posted limits the number of rows since you perform an inner join on CRS, HIS, and STU and use this...



    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: Multiple logins to single DB group

    What's the reason for matching two user to the same group?

    If you want to make sure both groups will use the same permissions, add a separate database.

    Example:

    CREATE ROLE [App_Agents]...



    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 to order by multiple columns

    The table script provided even more indicate an Oracle DB. So I'm out.



    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 to order by multiple columns

    I'd question the initial query.

    It seems like it's Oracle syntax. AFAIK, SQL Server doesn't support "Select Min(U2.Id) Keep (...)" syntax. For sure not SS2K8 (as indicated by the forum...



    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 to split the comma delimited string into rows without using LOOP, CTE, XML.

    J Livingston SQL (10/9/2013)


    LutzM (10/9/2013)


    Why did you open another thread?

    What about the answers already provided here?

    that post was to split into columns.....now it seems into rows.....

    Yep, you're right.

    I must have...



    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 to split the comma delimited string into rows without using LOOP, CTE, XML.

    Why did you open another thread?

    What about the answers already provided here?



    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: ORACLE: DUMP RESULT IN A TABLE

    This is usually a SQL Server site.

    If you get lucky, there'll be a person lurking around having the ORACLE knowledge required. But that would be random.

    For Oracle, asktom.oracle.com is a...



    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: Unpivot SQL Query

    You wouldn't need a c.u.r.s.o.r *cough*. It'll be dynamic SQL anyway (at least from my perspective...).

    The question is:

    How do you know, that the search conditions are combined using AND instead...



    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: Push a SP out to multilple machines at once

    You might want to look into sql-multi-script (www.red-gate.com/products/dba/sql-multi-script), a tool by RedGate.



    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 to update column city value from 'A' to 'B' and 'B' to 'A' in single query

    GilaMonster (10/8/2013)


    LutzM (10/8/2013)


    if we update a "left" table in a 1 ..n relationship, will sql server perform n updates or will it just do a single update?

    Single.

    I know. But...



    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: MSSQL Vulnerabilities

    The classic answer would be: it depends. It's impossible to "clarify". But it's always good to know what vulnerabilities have been detected and fixed...

    Once you know, you'll need to verify...



    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 to update column city value from 'A' to 'B' and 'B' to 'A' in single query

    If you insist doing it "in single statement", how about this:

    EXEC (...).

    If we'd agree this would qualify as a single statement, we're all set. Right? 😀

    To "support my argument": BOL...



    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: t-sql to create simple bar graph image file to be inserted into email

    @mickyT: I just referred to the very first question of the OP:

    We want to be able to use t-sql to create a simple bar graph image file, to be inserted...



    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: t-sql to create simple bar graph image file to be inserted into email

    I really do like mickyT's approach!!!

    It's definitely not "out-of-the-box".

    The question is: How can the "graph format" be used together with sp_send_dbmail. Any thoughts?



    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 do you map to rows inside different branches of same XML document using OPENXML rowset function?

    @Alan:

    as long as it is guaranteed there'll always be a single node for each and every node block referenced in the code, I agree that your code is more efficient.

    But...



    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 - 391 through 405 (of 5,502 total)