snapshot replication lock tables

  • hi,

    we use sql 2008 sp3 as distributions and publisher server for snapshot replication.

    i have a problem that during the snapshot creation the tables are locks.this is very disturbing because it take about 1 min to create the snapshot.

    is there a way that the server will not lock the tables?

    what about the "nolock" is there a way to insert it anywhere (i have no problem with dirty reads here)?

    THX

  • It takes schema locks, if I recall, so nolock will still be blocked (and even if it wasn't, are you as happy about duplicate rows?)

    Init from backup if the snapshot time is unacceptable? Personally I just make sure that snapshots only run out of business hours.

    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
  • the problem is that the replication needs to run every 15 min... 🙁

    there is no way to work around this snapshot locks?

  • Why do you need to snapshot the entire database every 15 min? If it's to keep two sites in sync, wouldn't transactional replication be a better fit?

    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
  • I'm not snapshot the database...i'm snapshot 6 tables.

  • You can create articles on these 6 tables.

  • I agree with Gail, Transactional Replication is a better fit here considering the frequency with which you need to replicate the data. With Transactional Replication, you would only need to generate a snapshot once when you initialize the subscription.

Viewing 7 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply