Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2003
    Posts
    2

    Unanswered: can insert cause a deadlock?(sybase v11.92)

    I insert a record into a table ,then SYBASE rerun error message.
    sqlcode is 1205,means deadlock?

  2. #2
    Join Date
    Sep 2002
    Location
    Hong Kong
    Posts
    159

    Re: can insert cause a deadlock?(sybase v11.92)

    Originally posted by dccndmr
    I insert a record into a table ,then SYBASE rerun error message.
    sqlcode is 1205,means deadlock?

    insert tableA (col1, col2, col3) values ( 1, 2, 3)
    shouldn't cause a deadlock.

    insert tableA (col1, col2, col3) select col1, col2, col3 from tableB
    may cause a deadlock if there is a transaction operating on tableB and requiring access to tableA.

  3. #3
    Join Date
    Mar 2001
    Location
    Lexington, KY
    Posts
    606
    It may deadlock if you are allpages with a clustered index and someone else is inserting to the same page as you are.
    Thanks,

    Matt

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •