Viewing 15 posts - 3,226 through 3,240 (of 7,609 total)
August 7, 2018 at 12:04 pm
After shrinks, I've had good luck very often with just a REORGANIZE overall ~80-85%, rebuild required ~15-20% of the time. Start with the smaller tables first, moving up in size...
August 6, 2018 at 11:10 am
August 6, 2018 at 10:12 am
For storing of SSN, you might consider adding a check digit to the value, so that it does become 10 digits (or 11 or whatever). That way they are trying...
August 6, 2018 at 7:43 am
August 3, 2018 at 2:01 pm
You could use a SEQUENCE, or if that is not available, insert the SSN into table with an identity and use the identity value as a link back to the...
August 3, 2018 at 1:01 pm
Select Code, new_string
FROM #Temp
CROSS APPLY (
SELECT STUFF(Code, 1, 1, '') AS base_string
) AS ca1
CROSS APPLY (
SELECT LEFT(base_string,...
August 3, 2018 at 9:32 am
August 2, 2018 at 1:42 pm
SELECT in the CROSS APPLY is more flexible, in that it makes it easier to assign multiple alias names and allows for table access to be part of assigning an...
August 2, 2018 at 12:11 pm
Somewhat confusing, but I think this may return the rows you want:
SELECT T.*, Z.*
FROM
#TEMP1 T
INNER JOIN
[TSI].[ZATS_BROKER_FEED] Z
ON T.Part_Num...
July 30, 2018 at 9:43 am
Non-clustered index(es) are almost always a waste of resources on a staging table.
A clustered index is much more likely to be useful, although it's obviously not guaranteed to...
July 30, 2018 at 8:19 am
You don't really need a cursor for what you're described.
DECLARE @job_name_pattern nvarchar(128)
DECLARE @sql nvarchar(max)
SET @job_name_pattern = 'MyJobEvery%'
SELECT @sql = CAST((
July 27, 2018 at 10:24 am
July 25, 2018 at 12:46 pm
Viewing 15 posts - 3,226 through 3,240 (of 7,609 total)