Forum Replies Created

Viewing 15 posts - 4,021 through 4,035 (of 6,038 total)

  • RE: Deploy the Database First

    Steve Jones - SSC Editor (3/27/2015)


    Eric JOATMON (3/27/2015)


    Steve,

    You mention "extra columns in a result set" as being a downside to deploying database changes prior to application code changes. That...

  • RE: Deploy the Database First

    You can use the following to identify what procedures or queries are using "SELECT *".

    SELECT DISTINCT objtype, db_name(dbid)dbname

    , object_name(objectid,dbid)objname, usecounts, [text]

    FROM sys.dm_exec_cached_plans P

    CROSS APPLY sys.dm_exec_sql_text (plan_handle)

    WHERE [text]...

  • RE: Are There That Many GUIDs?

    When clustering on a composite natural key, perhaps something like OrderDate + StoreID + SKU, then place the most sequential column in the left most position. Not only does this...

  • RE: Are There That Many GUIDs?

    RonKyle (3/27/2015)


    btw. natural keys will make the index wider than an integer. I would prefer to see a database properly normalised and applications properly thought through, but then again the...

  • RE: Mastery – Repetition, Variations, and Depth

    Installing SQL Server in a production environment is one area that few of us will ever master. Even in a large organization, there just enough enough opportunity for an in-house...

  • RE: Are There That Many GUIDs?

    The debate about Integer versus GUID really hinges around whether we're talking about the clustering key. For obvious reasons, whether your table is clustered on a sequential versus random key...

  • RE: Query running very slow

    Please provide a description of what this query is attempting to accomplish. For example, if all you're trying to do is return the most recent row for each BL_ID, then...

  • RE: Mastery – Repetition, Variations, and Depth

    SharePoint has a Wiki feature, if you want to create something that visible within your team or organization.

  • RE: Forgot SA password

    If you've already granted access to other accounts, and the issue is that you can't remember your own the SA login password, then you can can login under a different...

  • RE: The Worst Comments

    The worst comments are where someone has /* commented */ out blocks of code, sometimes pages and pages, with no explanation for when or why.

  • RE: Are There That Many GUIDs?

    RonKyle (3/24/2015)


    For that reason, a sequential integer will generally prove more efficient than a GUID.

    Why did you qualify this? Wouldn't this always be true? That doesn't mean that...

  • RE: Are There That Many GUIDs?

    GUID versus Integer, in terms of how efficiently the CPU can process them, is practically irrelevent in the databse realm. The vast majority of database are page crunchers, not number...

  • RE: Common Mistakes

    Chris Harshman (3/24/2015)


    Eric M Russell (3/20/2015)

    Yes, I do that sometimes, but the catch is that it has to be a 'persisted' computed column. Adding these persisted columns to an existing...

  • RE: Common Mistakes

    Chris Harshman (3/24/2015)


    Iwas Bornready (3/24/2015)


    What I often see is this. A programmer goes in to fix a problem, finds the source of the problem and fixes it. Done. But wait,...

  • RE: Common Mistakes

    Jeff Moden (3/22/2015)


    Eric M Russell (3/20/2015)


    Chris Harshman (3/20/2015)


    Eric M Russell (3/20/2015)


    One thing that SQL Server could use is function based indexes, so we can index on something like CAST(SALESDATE AS...

Viewing 15 posts - 4,021 through 4,035 (of 6,038 total)