Forum Replies Created

Viewing 15 posts - 29,671 through 29,685 (of 49,552 total)

  • RE: Log-shipping - How to sync two different databases - Primary is Live and Seconday is for Archiving

    MibD (10/28/2010)


    I think, if this works then its an easy data Archiving strategy. but not working so far. Otherwise you might need to write very complex logic in SP OR...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Unable to shrink database log file

    Pthprod_log is the physical name of the file (E:\Databases\MSSQL\Data\Pthprod\Pthprod_log.ldf). You need either the logical name or the fileid.

    Run this in the DB to get the logical name

    SELECT df.name FROM sys.database_files...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Log-shipping - How to sync two different databases - Primary is Live and Seconday is for Archiving

    MibD (10/28/2010)


    5. Changed the recovery model of PDB1 to simple and then shrinked the log file and the change the recorvey model back to FULL.

    This broke the log chain. After...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Quick SQL question

    Not surprising.

    With the where clause removed, the subquery will have more rows in it. Since it's a not in, more rows in the subquery can mean less rows in the...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Are the posted questions getting worse?

    Craig Farrell (10/28/2010)


    Hm, with all the Star Wars avatars around here I'm going to have to dig up a few Star Trek ones.

    I believe the Picard Facepalm will be the...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Are the posted questions getting worse?

    Grant Fritchey (10/28/2010)


    Yeah, I stumble over the word "statistics" badly enough without having a mouth full of sugar.

    At least you didn't take on an hour and a half presentation solely...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Are the posted questions getting worse?

    Brandie Tarvin (10/28/2010)


    What is DNRTV?

    http://dnrtv.com/

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Is it possible to just restore the data partition without the log?

    No.

    The log is needed. It's not an optional portion of the database, it's necessary for the restored database to be transactionally and structurally consistent.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Are the posted questions getting worse?

    Brandie Tarvin (10/28/2010)


    GilaMonster (10/28/2010)


    Woot. Just got a mail fom my ISP. Bandwidth cap permanently increased by 1 GB, no additional charge. Excellent!

    AWESOME! Time to start watching some shows! @=)

    I was...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Are the posted questions getting worse?

    Woot. Just got a mail fom my ISP. Bandwidth cap permanently increased by 1 GB, no additional charge. Excellent!

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Normalization vs Denormalization

    rootfixxxer (10/28/2010)


    Yes there isn't any rule that tells that, but it should be... 🙂

    Should it? Always? In every case?

    Why?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Normalization vs Denormalization

    rootfixxxer (10/28/2010)


    DataWarehouses is obvious that must be denormalized. 😉

    Really?

    They often are, but there's no such rule.

    Normalise fully. 4th normal form is probably a safe place to stop. Denormalise as necessary...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Scheduling System Database

    Rooms don't have start and end times (unless they only physically exist for certain times and vanish at others)

    Schedules have start and end times. Booking slots have start and end...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Duplicate Index Performance

    Bhuvnesh (10/28/2010)


    GilaMonster (10/27/2010)


    Point is that the cluster is the largest index on the table (because it includes all columns).

    Always ? What if i include only one column like empid...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: got a parameter sniffing example/demo script?

    Jeff Moden (10/28/2010)


    Not sure that's what he was getting at... if using RBAR on the million rows, a plan will be generated and executed for each row... even if it...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 15 posts - 29,671 through 29,685 (of 49,552 total)