Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. ismotuononen

    why 2 session locks each other, when they update separate rows in tab

    don't work. it locks. and I get : com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name 'a1'. Clause: Update a1 Set a='3' From a with (rowlock) where a='1' but: Update a1 Set a='3' From a as a1 with (rowlock) where a='1'; is ok, is that what You mean? but this locks. And there...
  2. ismotuononen

    why 2 session locks each other, when they update separate rows in tab

    And how force sqlserver to use rowlock? both sessions have autocommit off, and both have said commit before next scenarion SESSION 1: Sql> update a with (rowlock) set a='3' where a='1'; Processed: 1 Sql> SESSION 2: Sql> update a with (rowlock) set a='4' where a='2'; # and this session...
  3. ismotuononen

    why 2 session locks each other, when they update separate rows in tab

    this example is perhaps better: create table a(a varchar(2)); insert into a values('1'); insert into a values('2'); commit; SESSION 1: update a set a='3' where a='1'; Processed: 1 SESSION 2: update a set a='4' where a='2'; Processed: 1 SESSION 3: update a set a='4' where a='1'; # this...
  4. ismotuononen

    why 2 session locks each other, when they update separate rows in tab

    Don't help. because I don't neet those reads, those are there just to show what is in database. sessions locks even if I say just: create table a(a varchar(2)); insert into a values('1'); insert into a values('2'); commit; SESSION 1: update a set a='3' where a='1'; Processed: 1 SESSION 2...
  5. ismotuononen

    selecting first alphabet in the string

    select * from tablename where substring(message, PATINDEX ('%[a-zA-Z]%',message),1) = 'v' is that what You are looking for?
  6. ismotuononen

    why 2 session locks each other, when they update separate rows in tab

    is it possibly to execute next scenarion with sqlserver? and if it is possible, how? I have tried "Read commited snapshot", nolock, readpast and all kind of combinations, but nothing seems to work properly. both sessions runs same time with separed programs and both session have "autocommit...

Part and Inventory Search

Back
Top