Showing posts with label lock. Show all posts
Showing posts with label lock. Show all posts

Tuesday, March 20, 2012

alter table lock?

Hi!

I use proc handling special business logic (I also use constraints, indexes for that ;-)

Now I have a situation where I should check multiple rows with an proc.

Preventing multi-user issues I want to lock the table (yes, yes potential performance issue, but in this case there are few simultaneous jobs) - in Oracle I could lock the table, but what to do in SQL Server?

Maybe you have an better alternative, then let me hear ;-)

Or should I use "begin transaction"...

Thanks for help

Hmm, maybe

SET TRANSACTION ISOLATION LEVEL SERIALIZABLE

-- DO YOUR stuff

SET TRANSACTION ISOLATION LEVEL READ COMMITTED

will be the solution...

Some comments?

sql

Sunday, February 19, 2012

Allowing only shared schedules in subscriptions

We would like to lock down the ability to create individual subscription
schedules. We want anyone who creates a subscription to only be able to use a
shared schedule. Is there a way to do this?
Thanks.Wow! No takers on this?