Forum Replies Created

Viewing 15 posts - 4,006 through 4,020 (of 6,026 total)

  • RE: Snapshot of data, compare previous day

    SQL_Kills (3/31/2015)


    Hi,

    I tried to do a cross join but it wasn't working, do you have a example?

    Thanks

    What I was referring to is something like the following. Here we have a...

  • RE: Snapshot of data, compare previous day

    SQL_Kills (3/29/2015)


    A0001 still needs to appear as 50 as a Difference for the InjectedDate 2015-03-05 23:19:01.727

    To pad a resultset with missing rows required to form a complete set, you can...

  • RE: How to quickly update/insert 3M records in a large table?

    Most ETL jobs from source to target want to perform both inserts for new rows and updates for existing rows having the same primary key. However, if you only need...

  • 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...

Viewing 15 posts - 4,006 through 4,020 (of 6,026 total)