Forum Replies Created

Viewing 15 posts - 15,241 through 15,255 (of 49,552 total)

  • RE: Deadlock due to intra-query parallelism

    I would start by tuning the queries.

    If that doesn't work to remove the deadlocks, then and only then add a maxdop hint to those queries.

    Server level, without knowing anything...

    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 db from multiple diff vs last diff

    You only ever need to restore the last differential backup. They're differentials, not incrementals. Restore the full backup, the last differential then, if you're restoring log backups as well, all...

    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: Was the "Commands Completed Successfully" message replaced by "Row(s) affected"?

    Someone's set up a DDL trigger and forgot to SET NOCOUNT ON in 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: Deadlock due to intra-query parallelism

    Yup, that's intra-query parallelism

    Tune the query so that it doesn't need to parallel (or just to get a more efficient plan) or put a maxdop hint on the query.

    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: Enhanced Variable Declaration in SQL Server 2005 Mode

    Michael Fried (12/13/2012)


    I guess I would expect it to function more like a Microsoft Office program. When you save a document in Office 2003 Compatibility mode all 2007 or...

    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: Should I go ahead with 70-432

    MSSQL_NOOB (12/13/2012)


    I mean, if it's MSSQL2012 certification, then yes, I agree, a candidate needs to be recertify. But if it's the same MSSQL2008 - 70-432 exam (for example), why 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: transactional Replication- Two log files

    When the log gets full, they will both grow. If the log is not full, then the files aren't going to grow. If you have 148 GB free in 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: bulk insert blocks nolock query

    GSquared (12/13/2012)


    Sch-M locks are schema locks. Means you can't change the definition of the table during the bulk insert.

    Sch-M is a schema modification lock. Taken by 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: transactional Replication- Two log files

    What am I supposed to be seeing there, other than 2 files of the same size?

    You said in your initial post "both the logs are growing at the same rate....

    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: Need a TSQL Book that I can expertise in writing Tsql

    Anything written by Itzik Ben-Gan

    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: TSQL question -

    davidandrews13 (12/13/2012)


    isn't it just looking for the student_id column, not finding it in the emp table, so its taking it from the student table?

    Exactly what it is doing.

    It is...

    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: Restrict insert or update when taking backup

    rajkiran.panchagiri (12/13/2012)


    Is there any other way other than this?

    Not really. Setting the DB to read only or single user for the duration of the backup is the simplest. The question...

    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 traceflags

    There's no official list because many traceflags are undocumented or confidential. Microsoft is not going to go and document a list of undocumented traceflags

    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: Transaction log corruption

    Yeah, that's pretty unrecoverable.

    You may want to do some investigation of the IO subsystem, before it messes up again and corrupts the data file.

    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: Commit the transaction which is currently rolling back

    You can't commit it. It has to finish the rollback.

    Trying to kill it will not cause a corrupt database (there is nothing that a user can do via T-SQL that...

    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 - 15,241 through 15,255 (of 49,552 total)