Forum Replies Created

Viewing 15 posts - 12,736 through 12,750 (of 49,552 total)

  • RE: files and filegroups

    If you created the table on the 3rd filegroup then the table is on the 3rd filegroup. Default only applies when you don't specify a location.

    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: Delete records without logging

    Jeff Moden (6/17/2013)


    then you could use TRUNCATE instead of DELETE and that will be minimally logged.

    Technically truncate is fully logged. It just logs the page deallocations like a drop table...

    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: Delete records without logging

    balamurugan.devadas (6/17/2013)


    we dont want log growing for deleting the records without affecting DB Mirror,how to handle this ONE?

    Minimal logging is not a possibility, because deletes can't be minimally logged...

    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: Delete records without logging

    Lokesh Vij (6/17/2013)


    There is nothing called "No Logging" in SQL Server...there is something called "Minimal Logging". This can be achieved by using table locking hints.

    DELETE FROM TableName with (TABLOCK)...

    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: Will shrinking the DB improve time taken by index rebuild process ?

    Joy Smith San (6/17/2013)


    What are thr things that we need to do to speed up the index rebuild process ?..... in brief...

    Better IO subsystem.

    More memory (maybe)

    Reduce the need to rebuild...

    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 avoid deadlocks

    bslchennai (6/16/2013)


    so please help me on how to avoid the deadlocks.

    In general, write efficient queries and create indexes to support the app.

    In specifics, turn traceflag 1222 on and post 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: How to format the data in column in sql server

    To be honest, dates shouldn't be stored in formats. They should be stored as a datetime data type and formatted when selected or in the application.

    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: ldf file size

    No. Completely incorrect approach.

    Please read through this: http://www.sqlservercentral.com/articles/Administration/64582/

    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: Will Transactional Replication Supports Simple recovery Model ?

    Of course.

    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: Minimum Permission to create a database snapshot

    Members of the dbcreator fixed server role can create, alter, drop, and restore any database.

    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: Performance DIES when REMOVING Where Clause

    cpapas (6/14/2013)


    I can't seem to attach a file to a post. All I see is the hyperlink option.

    Below the text area, a button labled 'edit attachments'

    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: Performance DIES when REMOVING Where Clause

    Query and execution plan down (kinda), table and index definitions still outstanding.

    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: Performance DIES when REMOVING Where Clause

    GilaMonster (6/14/2013)


    Please post query, table definitions, index definitions and execution plans.

    p.s. I'm not sure a 4-page long CTE qualifies as 'simple'

    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: Minimum Permission to create a database snapshot

    From Books online:

    Permissions

    Requires CREATE DATABASE, CREATE ANY DATABASE, or ALTER ANY DATABASE permission.

    Since you changed the question...

    You GRANT any of the permissions listed above, or give the dbcreator role, which...

    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: Performance DIES when REMOVING Where Clause

    Please post query, table definitions, index definitions and execution plans.

    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 - 12,736 through 12,750 (of 49,552 total)