Forum Replies Created

Viewing 15 posts - 20,971 through 20,985 (of 49,552 total)

  • RE: ssis package backup plan

    I like deploying to MSDB, but the packages are in source control (zipped, some systems mess them up if the store them as XML)

    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: best practice to daily update TPS data extract (text file) in SQL Server

    PaulB-TheOneAndOnly (1/17/2012)


    1- If you are deleting the whole table please use truncate rather than delete. Truncate will do it instantly and generate no t-log.

    Minimal transaction log activity, not none. Truncate...

    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: Weird system view?

    It's not recursive. sys.objects$ is some hidden internal view, I've looked for its definition but I've never been able to dig it out.

    The best I've been able to get (DAC...

    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: Composite Index or individual indices?

    Also note that narrow indexes may well be useless - not used by SQL because they are not selective and not covering - and so you lose on both counts,...

    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: Sanity Check - using CASE in WHERE clauses

    Just note that seeing a seek in a plan does not necessarily mean it's an efficient seek. Check what's been evaluated as a seek predicate (what SQL navigates the b-tree...

    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: Sanity Check - using CASE in WHERE clauses

    I thought I'd do some quick testing. SQL 2008 SP3. AdventureWorks DB.

    CREATE PROCEDURE SearchHistoryCase

    (@Product int = NULL, @OrderID int = NULL, @TransactionType char(1) = NULL, @Qty int = NULL)

    AS

    SELECT ProductID,...

    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: Sanity Check - using CASE in WHERE clauses

    Rayven (1/17/2012)


    Running the query with different parameters using the OR clause and clearing the cache each run clearly showed it was using different plans each time depending on the parameters;...

    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: Source or Version Control?

    Here you go...

    http://www.red-gate.com/products/sql-development/sql-source-control/

    Aside. Developing directly on the production server is one hell of a risk. Sooner or later a miss-type or other similar happening is going to cause major problems...

    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?

    Personally I just find it hilarious that the US denounces that kind of censorship in China and Iran, then considers implementing it at home. "Do what I say, not what...

    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: index

    You certainly can script individual indexes. From Object Explorer expand out the table, right click on the index (under the table -> indexes) and select script.

    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: index

    No, just that the tools don't usually script indexes when you ask for the table to be scripted. It can be a separate option, depending how you did the script.

    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?

    SQLRNNR (1/17/2012)


    SQL Kiwi (1/17/2012)


    Perhaps SSC should go dark too. Or just the 'getting worse' questions 🙂

    Maybe twitter too?

    Well, seeing as the twitter CEO tweeted that wiki's actions is foolish,...

    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: Restore backup

    Unless the backup was taken WITH CHECKSUM, a restore verifyonly just checks the backup header and some metadata. It's entirely possible for a backup to verify but not restore.

    If 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: Impact of Huge inserts

    Brigadur (1/17/2012)


    I think it must put an incredible pressure on tempdb as all the temporary objects are created there also and there is only one tempdb per instance.

    No. Pressure, yes,...

    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: Composite Index or individual indices?

    Unless you're talking about indexes on hundreds of byte-wide char columns, for three indexes size should not be a concern. In general, one would go for a smaller number of...

    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 - 20,971 through 20,985 (of 49,552 total)