Forum Replies Created

Viewing 15 posts - 16,576 through 16,590 (of 49,552 total)

  • RE: Attended an Interview

    And the question of how many columns in a table depends on a couple things, it's not a fixed number. Maybe they were wanting to see if you knew 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
  • RE: If Update() in a trigger

    Yup. You want changed, you need to compare the columns in the inserted and deleted tables.

    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: Changing Locations of DataFile

    Try it out in a test/dev environment first. Even if it's just your local machine.

    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: If Update() in a trigger

    Not quite...

    It's checking whether ColumnA was one of the columns specified in the SET clause of the update statement.

    UPDATE Tbl SET ColumnA = ColumnA

    If you had an update trigger 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: Index Rebuild Question?

    Because the table's too small. The table comprises 2 pages perhaps. The general advice on where you worry about fragmentation is around 1000 pages.

    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: Changing Locations of DataFile

    ananda.murugesan (9/18/2012)


    if separate physical disks on different array controller, it will get much performance also disk IO will be reduced.. and same thing SAN attached LUN configuration.

    Maybe, maybe not. It's...

    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: SQL2005 client components (SSMS, MS Visual Studio 2005,...) not compatible with windows 64bit??!!

    amirhh2000 (9/16/2012)


    Can anyone please confirm that installation of SQL2005 Client Components is not possible on windows 64bit

    I can confirm 100% that the installation if the SQL 2005 client tools 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: OPTIMIZE FOR ADHOC WORKLOADS question

    Are they object plans (procedure, trigger, function), parametrised or ad-hoc queries?

    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: If Update() in a trigger

    A trigger fires once only for an operation. All the rows affected by the insert/update/delete will be in the inserted and/or deleted tables.

    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 Enterprise to Standered

    You need to ensure that the database is not using any persistent Enterprise only features first. Compression, TDE, partitioning. If it is, you have to remove them first, then...

    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: DBCC CHECKTABLE Error: 1203, Severity: 20, State: 1. - process attempted to unlock a resource it does not own

    Can you run a full CheckDB on whatever database threw the CheckTable errors?

    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 do I fix Damaged allocation pages

    No, because you have corruption not associated with any table.

    Repair rebuild will do nothing. The minimum level to repair that is repair_allow_data_loss. Use a level less than that and 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: DBCC CHECKDB with Data_Purity consistency errors

    You're going to have to identify which row have the bad values and update them (or you can just update the entire table and set the column say to 0,...

    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 do I fix Damaged allocation pages

    My advice from earlier stands. Repair or restore.

    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: DBCC CHECKTABLE Error: 1203, Severity: 20, State: 1. - process attempted to unlock a resource it does not own

    Database ID 27 could be the hidden snapshot that the integrity check uses. Can you try a full checkDB?

    DBCC CHECKDB (<Database Name>) WITH NO_INFOMSGS, ALL_ERRORMSGS

    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 - 16,576 through 16,590 (of 49,552 total)