So exactly how would I use something like this?  I started with saying
server locking, but the best thing would be... 

<cfquery name="myqry" datasource="mydsn">
Select top 1000 * from emailQueue with (updlock) where isSent=0
</cfquery>

and for that query to return different things on different servers.
Basically, I guess what I'm looking for is

select top 1000 * from emailQueue where isSent=0 and ROW IS NOT LOCKED.  

Is this possible in ms sql server?

Russ


> -----Original Message-----
> From: Jochem van Dieten [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 09, 2006 6:32 PM
> To: CF-Talk
> Subject: Re: cross server locking
> 
> Russ wrote:
> > Is this available in SQL Server 2000?  Looking at the docs, it doesn't
> look
> > like it is.
> 
> It is, but why would MS use the same syntax as everybody else
> when they can do it their own way and lock users deeper into
> their propietary syntax?
> 
> SELECT ... FROM ... WITH (updlock | rowlock) WHERE ...
> 
> Jochem
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231641
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to