Viewing 15 posts - 3,766 through 3,780 (of 7,610 total)
First I'd suggest looking into "Change Tracking". That would accurately identity any/all rows that have been modified since a certain date, and it wouldn't limit you to 4 days, you...
August 22, 2017 at 11:48 am
You also need to verify that the log is in status to be shrunk, like so:
SELECT log_reuse_wait_desc, *
FROM sys.databases
WHERE name = '<your_db_name>'
If the...
August 21, 2017 at 2:08 pm
It would be more efficient to UPDATE existing rows and only add new rows, but if the number of rows is not too large just deleting and adding probably wouldn't...
August 11, 2017 at 11:58 am
August 10, 2017 at 8:00 am
August 10, 2017 at 7:45 am
I believe the I_S views are ANSI/ISO standard. MS themselves were pushing them at one time. But they are too out of sync with the actual system catalog, i.e., too...
August 8, 2017 at 12:08 pm
I never use the I_S views. I've found them to be very slow and to cause blocking at times. I know their official view definitions don't show why that would...
August 8, 2017 at 11:26 am
August 8, 2017 at 9:38 am
In cases where you do need a scalar function, for max efficiency, get rid of any local variables that are not absolutely required:
CREATE FUNCTION [dbo].[ufn_GetPlannersName](@intFeasibilityRequestId...
August 2, 2017 at 7:42 am
The table definition could be adjusted for efficiency.
At a minimum, get rid of the formatting chars in the phone# and make both it and zip char rather than...
August 1, 2017 at 9:27 am
As noted, the code should be retained for debugging uses, but it should be modified some.
1) Be sure to add this statement before it:
SET @DropTempDB = ''
July 26, 2017 at 12:21 pm
I'll give it a guess. Typically now you use OUTER APPLY to do the type of lookup you're trying to do. You also definitely don't need to join the table...
July 21, 2017 at 7:14 am
Add a clustering index to pre-sort at least a few of the values. Just based off the very limited data you gave, I'd suggest something like this:
CREATE CLUSTERED...
July 19, 2017 at 1:56 pm
July 19, 2017 at 8:31 am
July 19, 2017 at 8:01 am
Viewing 15 posts - 3,766 through 3,780 (of 7,610 total)