Book a Demo

Author Topic: Locks and removal thereof  (Read 3599 times)

jeanfrancois

  • EA User
  • **
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Locks and removal thereof
« on: June 24, 2010, 12:07:23 am »
Hi :)

What affect will it have if I delete t_seclocks through my own sql queries (which I currently do), is it a bad thing? I assume so since they don't allow these modification queries through the normal SQLQuery(), only select statements?

How is deleting these locks manually through sql different than removing them from in EA through Project -> Security -> Manage Locks.

The trouble is, the model needs to be unused during a process, and currently I check if locks exists in the database belonging to another user, and if so throw an exception. But how safe it is to kick that user out?

Regards.
Jean

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Locks and removal thereof
« Reply #1 on: June 24, 2010, 12:15:05 am »
Jean,

I don't think you are going to get into trouble by deleting locks from the database directly.

SQLQuery will indeed not allow you to edit the database, but Repository.Execute(sqlString) will.

Geert

jeanfrancois

  • EA User
  • **
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: Locks and removal thereof
« Reply #2 on: June 24, 2010, 04:30:31 pm »
Thanks Geert :) I cant't find that function in my documentation in EA, but I see it is there in code.

Your help has always been most appreciated!

Jean

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Locks and removal thereof
« Reply #3 on: June 24, 2010, 05:57:30 pm »
Quote
Thanks Geert :) I cant't find that function in my documentation in EA, but I see it is there in code.

That would be expected as it is an undocumented method ;D

Geert