Viewing 15 posts - 3,766 through 3,780 (of 7,614 total)
I think the q/problem is:
given a date, if that date is before/on the first Monday of the current month, use the current month's first Monday,
else, use the first...
September 6, 2017 at 10:21 am
If I want EVERY row from the table (customers) then... I will always have to do a table SCAN, yes?
Not necessarily. It depends at least on:
September 6, 2017 at 8:30 am
Minimum disk read would be 8K, the size of a single SQL page. SQL does indeed organize 8 8K pages into 64K extents, but I don't believe SQL has to...
August 25, 2017 at 4:28 pm
Most often you can use CROSS APPLY to assign an alias name to a calculated value, which you can then use in the main query or in another CROSS APPLY,...
August 22, 2017 at 12:10 pm
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
Viewing 15 posts - 3,766 through 3,780 (of 7,614 total)