Forum Replies Created

Viewing 15 posts - 19,531 through 19,545 (of 49,552 total)

  • RE: Urgent Normalisation help!!!

    Lynn Pettis (3/27/2012)


    Aty01 (3/27/2012)


    there is no link to order table

    Stepping in a minute. Look at your Order table and think of an order you may have placed with a...

    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: Urgent Normalisation help!!!

    Really? Customers has a foreign key to orders? Think about it, do customers belong to an order or do orders belong to a customer?

    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: Overlapping Indexes

    You can't add two columns to the unique constraint without changing the uniqueness requirements of the table, and that's a bad thing.

    If you really don't want duplicate indexes, reverse 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: Urgent Normalisation help!!!

    What needs a link to the order table?

    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?

    Jeff Moden (3/27/2012)


    GilaMonster (3/27/2012)


    Is it just me, or does a term like 'That can be done, but people usually learn better' rankle when applied to something you've said?

    Feels a...

    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: Urgent Normalisation help!!!

    You're the one doing the design, I'm just guiding.

    So, we have so far this:

    Customer

    Customer Forename

    Customer Surname

    Street

    Town

    Postcode

    Email

    Category

    -------------------------

    Order

    Order Date

    description

    price

    qty ordered

    Reference to Customer Table

    ----------------------

    Stock

    Stock Description

    Price

    Qty in Stock

    Reference to Supplier table

    ----------------------

    Supplier

    Supplier Name

    Supplier Address

    Supplier Town

    Supplier...

    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: not getting rid of physical reads

    Robert Davis (3/27/2012)


    Ooh ooh. So what does ROM mean? 😀

    Read Only Memory, which is certainly not what people are referring to when they use the general term Memory. 😉

    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: How to reduce the execution time of a query?

    Execution plan please?

    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: not getting rid of physical reads

    RAM stands for Random Access Memory, so when we talk about something in memory, with no qualifiers or specifics, it almost always means RAM.

    Edit: Clarified for Mr Pedantic below. :-)...

    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: Urgent Normalisation help!!!

    Order has foreign keys to what tables?

    Supplier has foreign keys to what tables?

    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: Query Stalls - Upgrade from 2000 to 2005

    I've heard of cases where stats get updated hourly.

    p.s. Make sure your DBA is updating stats with fullscan at night, not running something like sp_updatestats.

    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: Testing Secondary database in Log Shipping

    I suspect the latter, but please do test that out on a dev/test machine first.

    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: how to alter the existing log file size in Ms sql...

    ALTER DATABASE ... ALTER FILE can only be used to grow the file. To make the file smaller, use DBCC ShrinkFile.

    p.s. Don't disable autogrow unless you're absolutely certain the file...

    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: how to restore 2008 backup on 2000 db??

    Can't be done. Databases cannot be downgraded in version.

    Best bet here, keep a backup of the 2000 database from just before the upgrade and if you have to go back...

    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: Maxdop - Good for few queries - Not so good for rest

    Can't say much from the query alone. Execution plan please (actual, not estimated), table designs and index designs.

    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 - 19,531 through 19,545 (of 49,552 total)