ADODB with NOLOCK

  • Hi All,

    I have several somewhat complex views that I use to both retrieve data and to grab a blank record when adding a new row to an entity. The views use "WITH (NOLOCK)" for performance and I was wondering if when I create a DB connection using pessimistic/optimistic locking if when I use the view the tables/row is actually getting locked.

    Does the ADODB lock override the "WITH (NOLOCK") syntax in hte SQL or vice-versa?

    Thanks in advance,

    Michael

  • the view's DDL NOLOCK will override any connection/session locking.

Viewing 2 posts - 1 through 1 (of 1 total)

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