Forum Replies Created

Viewing 15 posts - 34,291 through 34,305 (of 49,552 total)

  • RE: Physically remove record

    milzs (2/1/2010)


    So does anyone have any recommendations? The requirement would read like "Given one or more records in SQL Server 2008, these records need to be completely removed from...

    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: Last n records from a table

    vstitte (2/1/2010)


    As for how TOP works. Create a clustered index on Number on this table and then do a Top 3. Let us know what you find.

    It may be 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: Indexing a Large Table

    Please post the query, table definitions, index definitions and execution plan as per http://www.sqlservercentral.com/articles/SQLServerCentral/66909/

    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?

    george sibbald (2/1/2010)


    Gail,

    what happened to the new years resolution to spend less time on the forums because of workload?

    Still top 5 in January with over 700 posts?

    Tsk, tsk. 🙂

    Haven't had...

    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: Physically remove record

    ns_nataly (2/1/2010)


    Why not to update this record with another information of the same size:"Maitenance record... Please Ignore" ?

    Won't help with the log problem. When a record is updated the old...

    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: Database Design - Indexes To Create

    Can you post the actual queries that the reports use? Without seeing those it's not possible to give accurate recomendations. Also, can you post the schema with data types.

    As for...

    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: Physically remove record

    When a row is deleted, the previous values are written into the transaction log. This cannot be prevented. The log entry will remain in the log, and readable with sufficient...

    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?

    Roy Ernest (2/1/2010)


    Am I being too rude here?

    No. That's about how I'm reacting lately to questions so simple that they could be answered by testing in less time than 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: Query is timing out :( help plz

    ns_nataly (2/1/2010)


    Table variables work only for small recordset - for big number of records it is creating normal tempory table in background locking your resources.

    No it doesn't. The reason 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: Modified User

    Glad to hear.

    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: query taking a lot of time.

    Bhuvnesh (1/31/2010)


    No, query is returning correct results.

    It may be now, as written it may not always however. Nolock means to SQL Server 'get me the data fast, I don't...

    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: Query is timing out :( help plz

    Please post table definitions, index definitions and execution plan, as per http://www.sqlservercentral.com/articles/SQLServerCentral/66909/

    Also, do some investigation yourself and see where in the proc the really slow code is. It's seldom 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: Update a filed in the group

    Biz (1/31/2010)


    When I tried min() with group by GroupID and startdate, its giving the wrong answer, like its just replacing the same coursename to each row, its not checking 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: Primary key inserted by trigger

    jeff-860557 (1/31/2010)


    I'm open to suggestions, but I need an ID field which is guaranteed to be different across two separate dbs.

    Two column primary key. ID, ServerName.

    No need for a multi-valued...

    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: What tools and advice for a DBA managaging a DB that just didn't scale?

    STherrien-978820 (1/31/2010)


    About hiring an expert to come in... Employers had bad experiences in the past and I'm not hot with the idea of someone coming in and fixing things behind...

    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 - 34,291 through 34,305 (of 49,552 total)