Forum Replies Created

Viewing 15 posts - 211 through 225 (of 432 total)

  • RE: Setting up the Primary Key

    Jeff Moden (6/13/2010)


    Agreed... in standard SQL, that's correct. But we're not using "standard SQL"... we're using T-SQL. 😉

    I get it. If Microsoft say that the world is flat or...

  • RE: Setting up the Primary Key

    Jeff Moden (6/12/2010)


    Indexes are not just about performance... they're a part of DRI.

    Are you familiar with the SQL standard? It most certainly includes DRI and certainly does not include anything...

  • RE: Setting up the Primary Key

    Jeff Moden (6/12/2010)


    I have to say that I pretty much disagree with everything you said except for maybe not using GUIDs as a key especially since you use terms like...

  • RE: Setting up the Primary Key

    Maybe you are getting confused because you are asking the wrong questions. First determine what keys make sense from a business perspective. If you are thinking purely in terms of...

  • RE: Is the MVP Worth It?

    I got my first MVP award in January 2004. The best thing about it was that I got to network with some interesting people - other MVPs and people at...

  • RE: Primary-Foreign Key

    It was just intended as a simple example of a common situation. If you prefer then think about the example where an Order must contain at least one Order Item,...

  • RE: How it matters using Varchar, Integer for Primary Key?

    Suresh Kumar-284278 (5/28/2010)


    Would there be any performance impact deciding Integer or Varchar data type for a primary key?

    Maybe, but that does seem like the wrong question. A varchar key achieves...

  • RE: Primary-Foreign Key

    RonKyle,

    Your design still allows departments without managers. It's easy to create a one-to-one mapping using a table with two candidate keys:

    CREATE TABLE Dept

    (DeptCode INT NOT NULL, DeptName VARCHAR(50) NOT...

  • RE: Primary-Foreign Key

    I don't know about wrong or not but it's a different example from the ones I had in mind.

    Take a Manager table and a Department table (obviously manager may not...

  • RE: Shrink database

    Note that TRUNCATE_ONLY is deprecated. It only works in 2000/2005 and not in 2008 and later.

    Also before using this you should be aware that it leaves you vulnerable to data...

  • RE: Licensed Limit

    Quatrei.X (5/31/2010)


    Found out that this is a limitation of express edition... hmmm... but still, does anyone know any workaround to this

    Upgrade to Express 2008 R2. The new limit is 10GB.

  • RE: Primary-Foreign Key

    Any specific example? There might be but not seen any situation yet for circular relationships.

    I expect you have come across relationships that ought to be mandatory in both directions. It's...

  • RE: DBA, phantom job title?

    The DBA has historically covered at least two distinct types of role, sometimes combined into one person or team and sometimes not. Firstly, there's the Production DBA: managing servers, backups,...

  • RE: Primary-Foreign Key

    As Ron says, it's not necessarily wrong from a logical perspective. In fact, relationships of this kind which are mandatory in both directions are perfectly common in data modelling and...

  • RE: Shrink database

    Digs (5/20/2010)


    Doesnt a SQL server need maintenance after records have been deleted ?

    No, not usually, because data tends to grow faster than rows get deleted and the space freed by...

Viewing 15 posts - 211 through 225 (of 432 total)