Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 221505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:02:23+00:00 2026-05-11T19:02:23+00:00

I have a VB6 application accessing a single table on a MSSQL2000 server via

  • 0

I have a VB6 application accessing a single table on a MSSQL2000 server via ADO. I’m using read-only access (adOpenStatic, adLockReadOnly) There are other applications in the network which do make changes to the table.

For some reason I’m getting errors about my application being chosen as a deadlock victim.

I’m really confused: Why can there be a deadlock when I’m just reading from a single table? I’d expect timeouts, because of the writing of the other applications, but not a deadlock…

Can someone shed some light on this?

UPDATE: 2009-06-15 I’m still interested in a solution to this problem. So I’m providing some more information:

  • It makes no difference if I choose adOpenForwardOnly or adOpenStatic
  • It makes no difference if the cursor position is client or server.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T19:02:23+00:00Added an answer on May 11, 2026 at 7:02 pm

    It is possible for a single SELECT statement to deadlock against a single UPDATE or DELETE statement due to the presence of a non-clustered index, consider the follwing scenario:

    The reader (your app) first obtains a shared lock on the non-clustered index in order to perform a lookup, and then attempts to obtain a shared lock on the page contianing the data in order to return the data itself.

    The writer (other app) first obtains an exlusive lock on the database page containing the data, and then attempts to obtain an exclusive lock on the index in order to update the index.

    You can find more information on this (and other) type of deadlock in the Microsoft KB article Q169960 (http://support.microsoft.com/kb/q169960/)

    Also you might want to take a look on Google on how to obtain deadlock trace information (trace flag 1222) – this will report on exactly what SQL statements are conflicting over what objects whenever a deadlock occurrs. This is a fairly decent looking article – http://blogs.msdn.com/bartd/archive/2006/09/09/747119.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 157k
  • Answers 157k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Thx for Stuntz & RhinoDevX64 's reply, finally I work… May 12, 2026 at 11:07 am
  • Editorial Team
    Editorial Team added an answer I ran into this a while back and to be… May 12, 2026 at 11:07 am
  • Editorial Team
    Editorial Team added an answer You have all the signs of a classic buffer overflow.… May 12, 2026 at 11:07 am

Related Questions

I have a VB6 application that needs to update it's self. For this purpose,
I have a VB6 application which works with datetime values in SQL Server (which
I have a VB6 application that I am converting to .net. I am doing
I have a VB6 application that needs to be installed on Windows Vista as

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.