Viewing 15 posts - 3,856 through 3,870 (of 5,590 total)
I think the idea of a persisted calculated column is a good idea. However, you will still need to use your function for that.
This may be a bit better. It...
July 1, 2010 at 10:25 am
David in .AU (6/30/2010)
Only one thing to note, this stored proc is undocumented which means it may disappear suddenly after a service pack or in new versions.
Well, there is one...
July 1, 2010 at 8:40 am
First, lets look at consolidating those update statement. As an example, your first trigger has these individual update statements:
-- set or reset submittedBy based on...
June 30, 2010 at 9:20 pm
In looking through your triggers, I see quite a bit of code that can be consolidated, making one update statement instead of ~10. I'll post an example of this shortly;...
June 30, 2010 at 3:57 pm
Here's a T-SQL way to accomplish this (idea from this web site[/url]):
declare @sql varchar (8000),
@tbname varchar (100)
-- First table...
June 30, 2010 at 1:59 pm
GilaMonster (6/30/2010)
Could someone who knows their way around deadlocks take a look at this please? Not going to be able look at it before the weekendhttp://www.sqlservercentral.com/Forums/Topic944536-338-1.aspx
I threw some info out...
June 30, 2010 at 12:53 pm
KBSK (6/29/2010)
Hi,please help me in analyzing this deadlock...
what is causing the deadlock(i mean which query/insert statement is causing the deadlock)
Is this the information that you're looking for?
process 1:
INPUT BUFFER: insert...
June 30, 2010 at 12:51 pm
Here is a deadlock analyzing script I created some time ago... just save off your deadlock xml info to a file, and set the filename in the code (in the...
June 30, 2010 at 12:00 pm
GabyYYZ (6/30/2010)
Roy Ernest (6/30/2010)
This is the first time that one my articles did not bring out any discussion. It was rated very good, but it is very quiet... 🙂
Lucky...still shell-shocked...
June 30, 2010 at 8:45 am
Sam Phillips (6/30/2010)
June 30, 2010 at 7:44 am
Try splitting this line:DECLARE @CategoryId Int =
(
SELECT CategoryId
FROM dbo.[Forums.Categories]
WHERE ForumId = @ForumId
AND ParentCategoryId IS NULL
); --12;
into:
DECLARE @CategoryId Int;
SELECT @CategoryID...
June 30, 2010 at 6:54 am
Jeff Moden (6/27/2010)
SELECT Name AS TableName
FROM sys.Objects
WHERE Type = 'U'
AND Name LIKE...
June 29, 2010 at 7:36 pm
pieterdv (6/29/2010)
Steve Cullen (6/29/2010)
June 29, 2010 at 2:51 pm
Dave, can you add about a dozen rows of data for us to test with? (Do it in the form of insert statements!)
It looks like you're pretty close, but we're...
June 29, 2010 at 2:44 pm
Viewing 15 posts - 3,856 through 3,870 (of 5,590 total)