Forum Replies Created

Viewing 15 posts - 301 through 315 (of 5,502 total)

  • RE: space release after deleting rows from rable

    You could use one of the Standard Reports provided in SSMS (Right click the database -> Reports -> Standard Reports -> Disk Usage ( or Disk Usage by Table 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: T-SQL Doesn't Catch Condition

    I reformatted the query to be slightly more readable (I'd say).

    From my point of view there's no need to add all those extra nested ELSE CASE stuff since this will...



    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: Handling of SP failure within the calling SP

    Do you think it is even possible to minimize the impact on the entire process and design for the case where this one failed SP doesn't end up rerunning successfully?

    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: Upgrade from SQL 2005 Standard to 2008 R2 or Enterprise

    You could upgrade to either one (including 2008 R2 Standard or 2008 R2 Enterprise).

    However, you might consider that Mainstream Support for 2008 R2 will end 2014/07/08 which is just...



    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: Handling of SP failure within the calling SP

    You could try something along those lines (assuming the subroutines will include a RETURN 1 for success):

    ... get a set of values from a queue table ...

    DECLARE

    @returnValueSP1 INT =...



    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: Are the posted questions getting worse?

    Greg Edwards-268690 (11/23/2013)

    We had SQL Server, DB2, Sybase, and Oracle. But we moved the application from Oracle to SQL Server. And DB2 was for the ERP System, and moved 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: Are the posted questions getting worse?

    Lynn, I'd say give it a try and talk to them. Figure out what they're looking for and go from there.

    At least you'll know if they're really looking for Superman...



    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: Core T-SQL

    From my point of view a competent database developer knows his/her limits (= when a given scenario would require to leave his/her "comfort zone") together with understanding what concept would...



    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: Read all values from an xml node

    You could ignore the namespace by using a pseudo-namespace and a * to name all namespaces:

    ;

    WITH XMLNAMESPACES(DEFAULT 'some_string')

    SELECT

    pref.value('./text()[1]', 'varchar(MAX)') AS 'BankAccount'

    FROM @MyXML.nodes('//*:GetEmployeeDetails/*:return/*:BankAccounts/child::node()') AS RequestXml(pref)

    where pref.value('local-name(.)[1]',...



    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: calendar from table

    Even though stuff like that should be done at the presentation layer, it could also be achieved using T-SQL.

    The "magic word" is CrossTab (see the related link in my signature).

    Since...



    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: Copy records from tables with multiple levels of primary/foreign keys

    There are definitely ways to speed this process up (or at least make the code more compressed).

    But you're not seriously asking in a web forum if someone could tune your...



    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: Pivot query needed

    @luis:

    The "simple" CrossTab version won't work since the column names need to be dynamic.

    Hence my recommendation to use the Dynamic CrossTab version.



    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: Cursor fetch loops endlessly

    Is there any way you can provide a setup that could be used to reproduce the odd behavior of the sproc on a standalone machine (meaning that we can test...



    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: Coin combinations

    Isn't that more a scenario for CROSS JOINS rather than a recursive cte?

    I would use a Tally table to expand the number of coins per denomination and the CROSS JOIN...



    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 for patient arrivals, transfers In and Out and discharges and census on a hospital floor by hour

    It still doesn't make much sense. Please provide the expected result in a SELECT ... format.

    Something like

    SELECT

    '20131105' as Date,

    'HOLD' as Location,

    1 AS ArvlCount,

    9 AS ArvllHour,

    1...



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