Forum Replies Created

Viewing 15 posts - 3,901 through 3,915 (of 49,552 total)

  • RE: The R Language

    Ed Wagner (1/5/2016)


    With it being for SQL 2016 though, I know it'll be several years before I can use it.

    Nope, you can go and download it now and start using...

    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: Cannot Kill Process stays in KILLED/ROLLBACK status

    In my experience, the 0% complete, 0 seconds remaining rollbacks tend to sit around forever. It would be waiting for an external resource, so do check, but those ones alone...

    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: Page Corruption

    Are you still getting the error after CheckDB ran?

    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: Why Use the Principle of Least Privilege?

    roger.plowman (1/4/2016)


    SQL, on the other hand, makes it hard to *avoid* accidental code execution inside parameters...

    It's not hard at all.

    Always parameterise queries (no, stored procs aren't required, parameterised SQL...

    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: Return N rows

    One way, if the resultset it not too large, pull the entire thing to the client and do the paging in the grid. Advantage there is that 'next' is fast...

    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: The Most Common Query Blunders...

    And for interest sake, using NewID() which really is evaluated on every row, the average CPU and duration with the same test setup:

    CPU: 936

    Duration: 927.8

    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: The Most Common Query Blunders...

    Alex Gay (1/4/2016)


    The most obvious of these is GetDate(). It might be quick to run, but if it only takes 1 ms but you are retrieving 50K rows, you have...

    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: Multiple parameter function !

    .

    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: Question about include index

    Tac11 (12/31/2015)


    One more question, which option is better?

    Both. Neither.

    As with all index-related questions, it completely depends on the queries running against the table. If you have queries that filter on...

    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?

    Already home.

    The CEO left about 2:30, and encouraged everyone who was still there to leave as well. No plans for the evening, so I think I'll play Kerbal Space...

    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: Big database with data file failure

    That's an irreparable error. You'll need to restore from your last good backup to fix that.

    PFS and other allocation pages cannot be single-page restored, you'll need to restore the entire...

    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 way to determin which column or set of columns to partition a table on

    Why are you partitioning? What's the goal?

    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: Migrating to 2014

    https://www.google.com/?q=SQL+Server+2014+changes+to+the+cardinality+estimator

    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: Is Load Balancing possible in SQL Server Active/Active Cluster ?

    No.

    Active-active is a not the same instance and same databases on both nodes. It should be called 'multi-instance clustering', and it's when you have Instance1 with DatabaseA, DatabaseB on node...

    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: Create temporary table from output of dynamic SQL

    No.

    Temp tables are dropped when the scope they're created in ends, and that's the dynamic SQL. The temp table is created, but is dropped when the dynamic SQL ends. To...

    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 - 3,901 through 3,915 (of 49,552 total)