Forum Replies Created

Viewing 15 posts - 38,746 through 38,760 (of 49,552 total)

  • RE: Non Clustered index - With INCLUDE clause

    vikas bindra (6/2/2009)


    Do I actually need NIX_WITHINCLUDE_1 and NIX_WITHOUTINCLUDE indexes?

    I can't see any reason why you would. It is possible that SQL would use the smaller ones occationally, but 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: optimizing query

    vidhyasudha (6/2/2009)


    First I create a temp table to hold the data that satisfy the where condition

    INSERT INTO #tmpP

    select x.p_id, x.col1,x.col2,x.col3 from x where x.colm4 'N'

    What is table x?

    set @pidentity...

    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: Use or not use all available CPUs or a single CPU

    Yup. The setting is 'max degree of parallelism'. If it's 0, SQL will use as many of the CPUs as it feels necessary for a query. If you set it...

    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 2003 possible problem?

    Do you mean SQL Server 2005? There is no version 2003.

    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: Writing Dynamic Stored Procedure

    rafidheenm (6/2/2009)


    This can be write like this and avoid CASE statements from WHERE clause..

    Yes, but it doesn't change the execution characteristics. Just like the case statement version, that will typically...

    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: Trigger not firing

    sql_lock (6/2/2009)


    IF(UPDATE(Authorised))

    That trigger is not going to do anything for the update you posted. It will only execute if the Authorised column is updated, that's what the IF UPDATED line...

    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: restoring from a database mirror

    In 2008, SQL can 'repair' damaged pages from the mirror automatically. Enterprise edition only.

    Books Online:

    A database mirroring partner running on SQL Server 2008 Enterprise or later versions automatically tries 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
  • RE: Deleting temp tables in the system "tempdb".

    It is about permission. Only the connection that created a temp table can drop it.

    See if you can run sp_spaceused on that table and see how much space it's taking...

    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: users in sleeping mode

    GURSETHI (6/1/2009)


    Q: If they are in sleeping mode yet can they be a reason of

    slow performance?

    A: Sleeping means waiting for a event 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
  • RE: Trigger not firing

    Is there code in the trigger to check that a row has actually changed?

    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: TempDB and SQL Error 845

    TRACEY (6/1/2009)


    Is this total or per DRIVE DISKS...to select.

    Individually for each drive that has SQL data or log.

    Taking the total's not very useful as more idle drives can skew 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: easy question regarding cross join

    mathieu_cupryk (6/1/2009)


    Msg 4104, Level 16, State 1, Procedure sprGetAffectedServicesByTicketID, Line 8

    The multi-part identifier "tbl_lookup_type_services.ServiceType" could not be bound.

    Take a look at my query, take a look at yours. There's a...

    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: Interview Questions.

    Generally we don't answer interview questions here. Interviews are for you to show what you know, not for you to memorise other people's answers. Some of those questions are fairly...

    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 restore a database on SQL 2005 Cluster node?

    Are those drives set up as dependencies in the cluster?

    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: easy question regarding cross join

    I don't understand your question. If there's a cross join it's because either you typed CROSS JOIN or, if you used a query builder, because you didn't define a relationship...

    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 - 38,746 through 38,760 (of 49,552 total)