Viewing 15 posts - 21,136 through 21,150 (of 26,490 total)
Alex Prusakov (5/6/2009)
May 6, 2009 at 4:05 pm
Original code:
BEGIN TRANSACTION
SELECT * FROM UserStats WHERE UserID = @UserID
IF @@ROWCOUNT = 0
BEGIN
INSERT INTO UserStats (UserID) VALUES (@UserID)
END
COMMIT TRANSACTION
What I would do:
insert into UserStats
select
from
...
May 6, 2009 at 4:00 pm
I saw the OP's reply before I saw your warning. Obviously the force was not with us at the time.
May 6, 2009 at 3:35 pm
Technically, I'd say yes. You may want to consider licensing the other server on a per CPU license as well.
May 6, 2009 at 3:30 pm
Alvin Ramard (5/6/2009)
Alvin Ramard (5/6/2009)
Lynn Pettis (5/6/2009)
Alvin Ramard (5/6/2009)
Lynn, let me know if you understand the OP's last reply in the thread about the rolling 12 months. I don't...
May 6, 2009 at 3:24 pm
ericb1 (5/6/2009)
This control builds grids, which is based off a view I have in SQL2k5. I needed to add a WHERE clause to...
May 6, 2009 at 3:23 pm
Alvin Ramard (5/6/2009)
john.arnott (5/6/2009)
4K
Lynn, let me know if you understand the OP's last reply in the thread about the rolling 12 months. I don't think he knows what you...
May 6, 2009 at 3:15 pm
Alvin Ramard (5/6/2009)
ericb1 (5/6/2009)
May 6, 2009 at 3:13 pm
From the Merriam-Webster on-line dictionary:
1 : of or relating to an uncle
2 : suggestive of an uncle especially in kindliness or geniality
May 6, 2009 at 3:05 pm
I guess it depends. I tend not to apply the CU's unless I have an issue that is addressed by the CU.
May 6, 2009 at 2:55 pm
Not sure how performant this will be, and it may not be the best way to accomplish it.
create a view that accomplishes the openquery with NO criteria, you are asking...
May 6, 2009 at 2:49 pm
Bruce W Cassidy (5/6/2009)
May 6, 2009 at 2:40 pm
Would you please post the code for your tvf?
May 6, 2009 at 2:24 pm
If I read you right, correct, you can't use a stored procedure in a query like a table. that's why you would need to load the data returned from...
May 6, 2009 at 12:38 pm
My fault, was looking at something else while typing. Move the last argument to the first, the first to the second, and the second to the third.
May 6, 2009 at 12:31 pm
Viewing 15 posts - 21,136 through 21,150 (of 26,490 total)