Forum Replies Created

Viewing 15 posts - 2,506 through 2,520 (of 49,552 total)

  • RE: Key Lookup(Clustered) and Index Seek (NonClustered)

    PJ_SQL (8/28/2016)


    Ran the execution plan for the script and it showed 50% cost for Key Lookup(Clustered) and 50 %Index Seek (NonClustered). It didn't show any missing indexes, but DTA recommended...

    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: questions about sql

    coool_sweet (8/28/2016)


    i am not finding it anywhere

    I assure you, there's information on the isolation levels in the official documentation (Books Online)

    yes interview question

    The point of interview questions is to see...

    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: questions about sql

    coool_sweet (8/28/2016)


    (1)how to find nolock?

    (2) can a table have only non cluster index?

    (3) Design a package to transfer 10 files from FTP and store them to hard drive?

    (4)What is self...

    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 Analysis Services included in SQL Server 2016 Standard edition?

    Eric Mamet (8/28/2016)


    This is brilliant for small businesses!

    Is it new in 2016, or did I miss it in 2014?

    It's been like this since there was an Analysis Services (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: Clustered Index Scan or Index Seek + Key Lookup

    It depends both on the total size of the table, and on the number of rows needing a lookup.

    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: Clustered Index Scan or Index Seek + Key Lookup

    Depends on the table size and number of rows needing a lookup. Test for your data set and see which works better for you.

    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: how to remove leading 1 and zeros

    Assuming you know there is only one non-zero leading digit, doesn't matter how many zeroes there are

    DECLARE @Number BIGINT;

    SET @Number = 1000000017777;

    SELECT CAST(RIGHT(@Number, LEN(@Number) - 1) AS INT);

    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: SQL Server Upgrade from 2008 Standard to 2014 or 2016

    erico (8/27/2016)


    The Detach/Attach operation might be doable going across different versions from operation standpoint, but it is very important to have compatibility modes in sync from the perspective 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
  • RE: error creating trigger

    https://msdn.microsoft.com/en-za/library/ms189799.aspx

    Permissions

    To create a DML trigger requires ALTER permission on the table or view on which the trigger is being created.

    To create a DDL trigger with server scope (ON ALL SERVER)...

    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: Table Partitioning

    Ok, so if you're after performance improvements, why are you wasting time looking at partitioning?

    Partitioning is for data management, fast loads, archiving, that kind of thing, if if you...

    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: Table Partitioning

    Depends. Why are you partitioning the table?

    The purpose behind the partitioning will determine what your partition columns should be.

    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: SQL Server Upgrade from 2008 Standard to 2014 or 2016

    DaleB (8/26/2016)


    In the context of this thread why is a detach/attach upgrade process more risky than a backup/restore?

    Mostly because it doesn't leave you an intact copy of the DB 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: SQL Server Upgrade from 2008 Standard to 2014 or 2016

    erico (8/25/2016)


    Detach/Attach can only be done with databases in the same SQL Server compatibility mode - meaning you can only for example Detach/Attach a 2016 database in the SQL server...

    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: Up, Up, and Away

    phonetictalk (8/26/2016)


    And when you turn left at a red light, a lot of people stare. :hehe:

    Yes, because unlike in the US, turning left (would be right for the US) through...

    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: Up, Up, and Away

    Steve Jones - SSC Editor (8/26/2016)


    Thanks, we are thinking to try and get up to Inverness and maybe beyond

    If you're going up to Inverness, take the train from Edinburgh. Goes...

    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 - 2,506 through 2,520 (of 49,552 total)