Forum Replies Created

Viewing 15 posts - 1,846 through 1,860 (of 6,036 total)

  • RE: Query on a large database

    Kristen-173977 (11/2/2015)


    Sergiy (11/1/2015)


    As for database backups - I don't think there is a place for it in the current world.

    How do you handle a fraud investigation with no backups?

    Logs, I'd...

  • RE: Query on a large database

    Gail, I'm talking from experience.

    I went through a "whole site" disaster.

    Not quite a "fire in the room", but with the same consequences - everything is down and non-recoverable.

    Yes, backups were...

  • RE: Query on a large database

    GilaMonster (11/1/2015)


    Why?

    Why keep data that we don't need to keep in detail and only need to keep in an aggregated form?

    What kind of data we don't need?

    Health history?

    Credit history?

    Criminal records?

    The...

  • RE: Query on a large database

    I mean - you do not need to delete those 20 million rows.

    You may leave them where they are - their presence is not gonna affect queries against the sets...

  • RE: Query on a large database

    GilaMonster (11/1/2015)


    Also fast data loads, fast deletes, aka the sliding window.

    The thing is - correct cluster index eliminates the necessity for a sliding window altogether.

  • RE: Query on a large database

    Not to mention another "little" problem with partitioning:

    Msg 7736, Level 16, State 1, Line 2

    Partition function can only be created in Enterprise edition of SQL Server. Only Enterprise edition of...

  • RE: Query on a large database

    Jeff Moden (11/1/2015)[hrAh... how soon I forgot the problem with the double-quotes in the CSV file. If you loaded the data without modifying the delimiter in the BULK INSERT...

  • RE: Query on a large database

    Jeff Moden (10/31/2015)


    Not to mention, that's a really nice machine you've got there, Sergiy.

    It's not a nice machine, it's an empty recordset returned.

    Which is actually a very good test...

  • RE: Query on a large database

    OK, populated 2 tables from the scripts.

    Here is the outcome:

    set statistics time on

    Select REF_AGE , COUNT(*)

    from Partitiontest123.dbo.partitionedtbl

    where ref_age between '27' and '30'

    group by REF_AGE

    set statistics time off

    SQL...

  • RE: Trigger and email notification

    ScottPletcher (10/28/2015)


    For now, it might be workable to use the trigger, but have a separate BEGIN TRY ... CATCH around the email send, to capture almost all errors so they...

  • RE: Database Design

    Real life example?

    Tax invoice.

    Tax amount usually is calculated as percentage value, and usually needs to be rounded.

    Those rounded values are what is paid and shown in reports.

    When you aggregate...

  • RE: Database Design

    happygeek (10/4/2015)


    why store rounded values; you have the value, use whatever report generator you use to round or format the output.

    It depends.

    You may need to consider those rounded values...

  • RE: Trigger and email notification

    I would strongly recommend not to run sending emails or any other kind of external operations from a trigger.

    And glitch in the functionality beyond SQL Server control may cause total...

  • RE: Query on a large database

    Jayanth_Kurup (10/23/2015)


    Mainly trying to highlight the difference between an allocation scan and traversing the b tree.

    Once again:

    Can you show how a query for an age group for ages between @m...

  • RE: Query on a large database

    Jayanth_Kurup (10/23/2015)


    More than happy to demo the concept if it helps , Also the sample script and data are shared on google drive have you tried it?

    I built a whole...

Viewing 15 posts - 1,846 through 1,860 (of 6,036 total)