Forum Replies Created

Viewing 15 posts - 7,606 through 7,620 (of 18,923 total)

  • RE: Wierd one..

    Grant Fritchey (10/22/2010)


    Oops. I spend most of my time in 2008 these days. I tend to bleed that stuff back down the chain sometimes.

    No sweat, I'm glad I learned this...

  • RE: Wierd one..

    SureshS_DBA (10/22/2010)


    Grant

    I believe DBCC freeproccache (<guid>). will work on 2008 only....

    Confirmed, doesn't work on sql 2005 standard SP 2

  • RE: More efficient way

    It's like air guitar... it's pretend code rather than actual table scripts and actual data which gives you the final and tested query.

  • RE: Wierd one..

    Compare both execution plans to find the difference.

    It's likely a parameter sniffing issue (plenty of articles in google about that)

  • RE: Memory

    Why would you leave so much ram for windows?? 38.4 Gb seems like a lot for nothing... especially if nothing else is running besides sql server db engine.

  • RE: More efficient way

    I don't know if it makes sens for your data, but I usually copy the begin and end date filters in the derived tables as well when I can.

    This usually...

  • RE: select query taking more time (execution time)

    There's no way this is the whole query. I have a small laptop here and returning 1M records takes only seconds.

    That means that your query is either way more...

  • RE: select query taking more time (execution time)

    Geoff A (10/20/2010)


    add an index. (if its not there)

    USE [YourDataBaseName]

    GO

    CREATE NONCLUSTERED INDEX [IX_Deleted_Ind ] ON [dbo].[Table1]

    (

    [Deleted_Ind] ASC

    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY...

  • RE: More efficient way

    How long did it take before you started using our recommendations?

  • RE: More efficient way

    Bill_CCAC (10/19/2010)


    9 seconds total execution time.

    How much seconds did you save from the original query compared to the new one.

  • RE: More efficient way

    It's 9 seconds less?

    9 secs total.

    It started from 10 secs or 10 days?

  • RE: Tempdb

    Richard M. (10/19/2010)


    TemDB will not automatically shrink back, but you need to take something bigger in consideration: how often will this happen? If it will be frequent, it would be...

  • RE: You'd think I'd have learned...

    Daniel Bowlin (10/19/2010)


    one lesson I have learned...Don't Change ANYTHING on Friday! Just answer easy questions on SQL Server Central

    I've known some people that have tried to make this don't...

  • RE: More efficient way

    Bill_CCAC (10/19/2010)


    you folks are all fabulous. thank you all.

    I had been trying to use the case statement but ran into problems and didn't get the results I was after....

  • RE: More efficient way

    As it's been pointed out you can do a single query and add an age group. From there pivot the data in the reporting application.

    That'll take out 99% of...

Viewing 15 posts - 7,606 through 7,620 (of 18,923 total)