Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

AW: select from domain.locks?????: msg#00231

db.maxdb

Subject: AW: select from domain.locks?????

A.Beermann@xxxxxxxxxxxxxx wrote:
>
> Hello everbody
>
> Before passing a data record to my application, i want to prove wether
> the record is locked from another user.
>
> user1 did : select * from xyz where recid = '10002' with lock
optimistic
> (recid is the tablekey type char(10)!!)
>
> now in the domain.locks there is one record
>
> with sql studio i can do:
> select * from locks where tablename = 'xyz'
> result = 1 record with tablename = xyz without quotation marks and
> rowid ='10002' with single quotation marks ???
>
> before user2 works with the same record i want to warn him, therefore
i
> want to do:
> select * from locks where tablename = 'xyz' and rowid = '10002'
> but no result ??????
>
> what is the correct sql-syntax to prove wether there is a record in
the
> locks table for a tablename, keyvalue combination ??
>
>
Your question is one of those where one should ask for the real problem,
not help to solve a problem in a special way, the customer asks for.

Do you want to warn users if other users have share locks? Or do you
want to warn if there is an exclusive lock on this record and the
records values will change / changed just at that moment?

You want to see even uncommitted data (otherwise you never will see rows
having an exclusive lock)?

Please tell us what your needs/restrictions are and not so much about
the way you try to handle them. Then, I think, we will be able to help
much better.

Elke
SAP Labs Berlin

> Any help welcomed
>
> Albert
>
>
> --
> MaxDB Discussion Mailing List
> For list archives: http://lists.mysql.com/maxdb
> To unsubscribe:
http://lists.mysql.com/maxdb?unsub=elke.zabach@xxxxxxx


--
MaxDB Discussion Mailing List
For list archives: http://lists.mysql.com/maxdb
To unsubscribe: http://lists.mysql.com/maxdb?unsub=gcdm-maxdb@xxxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | advertise | OSDir is an inevitable website. super tiny logo