Viewing 15 posts - 4,906 through 4,920 (of 7,597 total)
ZZartin (7/31/2015)
ben.brugman (7/31/2015)
Sean Lange (7/31/2015)
July 31, 2015 at 4:10 pm
Lynn Pettis (7/31/2015)
Sean Lange (7/31/2015)
ScottPletcher (7/31/2015)
Technically "usp_" is illogical, since "sp_" stands for "special", but "usp_" wouldn't be meant as "user special".
I would offer that a prefix of any kind...
July 31, 2015 at 2:31 pm
halifaxdal (7/31/2015)
July 31, 2015 at 2:27 pm
SELECT pm_emp.ProgramID, pm_emp.EmployeeID, e.EmployeeName
FROM (
SELECT
pm.ProgramID,
eq.EmployeeID
FROM tblProgramModules pm
LEFT OUTER JOIN...
July 31, 2015 at 2:17 pm
Technically "usp_" is illogical, since "sp_" stands for "special", but "usp_" wouldn't be meant as "user special".
July 31, 2015 at 2:06 pm
Maybe this will give you some ideas/alternatives:
SELECT
breach_content,
RIGHT(breach_content, CASE WHEN SUBSTRING(breach_content, LEN(breach_content) - 3, 1) = '.' THEN 3 ELSE 4 END)...
July 31, 2015 at 1:46 pm
You'll have to specify COLLATE on every column to which it applies.
For example:
CREATE TABLE #test ( col1 varchar(30) NOT NULL COLLATE Latin1_General_CI_AS, col2 int NOT NULL, col3 datetime NOT NULL,...
July 31, 2015 at 1:36 pm
Get rid of the parentheses around the main queries -- those "tell" SQL that a subquery is coming, but these not subqueries.
/*(*/
Select distinct b.lev5
from bf_data a
inner join bf_orgn_cnsl_tbl b
on a.bf_orgn_cd...
July 30, 2015 at 4:14 pm
You should be able to purge/archive older data without any blocking, unless someone is constantly reading old data too.
What is the table clustered on?
July 30, 2015 at 4:08 pm
I thought the time was needed on the rows where it does appear.
You can directly CAST format 'YYYYMMDD hh:mm[:ss[.sss]]' to a datetime or date.
July 29, 2015 at 1:50 pm
Since you're updating the column anyway, also remove the wasteful dashes as well and just store YYYYMMDD.
UPDATE table_name
SET column_name = REPLACE(REPLACE(column_name, '00:00:00', ''), '-', '')
July 29, 2015 at 1:40 pm
A fragmented table that must be scanned will consume more total buffer pages. Several such tables could affect overall SQL performance even if queries on that specific table don't...
July 29, 2015 at 1:38 pm
What about "/d -0"?
July 29, 2015 at 1:32 pm
rootfixxxer (7/29/2015)
But like i said before, even if change the index and the logical reads decrease about 50%, the time is the same.
And if i use...
July 29, 2015 at 11:48 am
rootfixxxer (7/29/2015)
July 29, 2015 at 9:01 am
Viewing 15 posts - 4,906 through 4,920 (of 7,597 total)