Viewing 15 posts - 1,681 through 1,695 (of 9,643 total)
codebyo (3/19/2012)
Great suggestions there!
But why do you need to use an IF block?
Wouldn't this work as well?
UPDATE inventory
SET Sold = Sold + 1
WHERE FlightNumber =...
March 19, 2012 at 9:26 am
Brandie Tarvin (3/16/2012)
Book 2 of Latchkeys, The Ugly Little Bloke by Robert Greenberger is out. Links are below.
Preview the book at http://www.crazy8press.com/2012/02/24/preview-the-ugly-little-bloke/%5B/url%5D.
Buy the book on...
March 16, 2012 at 1:00 pm
I have couple other recommendations that might help as well. I'd code this something like this:
IF EXISTS(Select 1 From Inventory where FlightNumber='F3241b' AND total >= sold + 1)
...
March 16, 2012 at 9:21 am
You could use a an UPDLOCK table hint on the select statement or you could use SERIALIZABLE as the Isolation LEVEL. I honestly don't know which one will work...
March 16, 2012 at 9:09 am
You mean something like this:
SELECT
OBJECT_NAME(I.object_id) AS table_name,
I.name AS index_name,
...
March 16, 2012 at 8:59 am
When connected to the SQL Server on the copy, what does SELECT @@SERVERNAME return?
Check out this article, http://msdn.microsoft.com/en-us/library/ms143799.aspx
March 16, 2012 at 8:45 am
Can you be more specific?
What do you mean by "it was not migrated full database"? Does that mean that you were missing data or that you need to migrate...
March 16, 2012 at 8:26 am
Sure there are lots of things that can cause this:
Other processes running on the server
Having to go to disk instead of memory to retrieve the data
Network latency
A better measure of...
March 16, 2012 at 8:22 am
Return values are rarely used to determine the status of a stored procedures execution. Normally you will either let the error bubble up to the client or handle the...
March 16, 2012 at 8:18 am
Grant Fritchey (3/15/2012)
Jack Corbett (3/15/2012)
herladygeekedness (3/15/2012)
March 15, 2012 at 3:11 pm
jcrawf02 (3/15/2012)
March 15, 2012 at 3:07 pm
herladygeekedness (3/15/2012)
March 15, 2012 at 10:53 am
L' Eomot Inversé (3/15/2012)
Paul's anti-marriage poison (which...
March 15, 2012 at 10:48 am
What about storage? What changed?
March 14, 2012 at 3:29 pm
Steve Jones - SSC Editor (3/13/2012)
I'd like to think that we aren't "parenting" newbies like this: http://online.wsj.com/article/SB10001424052702304450004577277482565674646.html?mod=wsj_share_tweet (about 15 paras in)
Wait, that was done in southern California, does that really...
March 14, 2012 at 3:24 pm
Viewing 15 posts - 1,681 through 1,695 (of 9,643 total)