Viewing 15 posts - 4,396 through 4,410 (of 9,399 total)
Is Change Coming? I certainly hope so. I honestly hope it's real, honest-to-goodness change in the area of security. The "get it done fast and work security...
December 26, 2015 at 9:54 pm
From what I infer, you're looking for something like this:
SELECT cmpy_code, year_num, SUM(open_amt)
FROM tmpaccthist_2013_2014
GROUP BY cmpy_code, year_num;
From your sample output, I don't see the ORDER BY...
December 26, 2015 at 6:36 pm
HappyGeek (12/26/2015)
Ed Wagner (12/25/2015)
DonlSimpson (12/24/2015)
Revenant (12/24/2015)
Grumpy DBA (12/24/2015)
TomThomson (12/24/2015)
DonlSimpson (12/23/2015)
Ed Wagner (12/23/2015)
eccentricDBA (12/23/2015)
djj (12/23/2015)
Ed Wagner (12/23/2015)
Grumpy DBA (12/23/2015)
anthony.green (12/23/2015)
Ed Wagner (12/23/2015)
SleepDeprived
Fatigue
Mistake
Regret
Resolution
Solution
Suspension
Hanging
Chad
Niger
Algeria
Morocco
Casablanca!
Bogart
December 26, 2015 at 12:46 pm
Full backups are usually very IO-intense. I'd start by taking a look at the IO consumed by the other jobs. If they're IO heavy, you might need to...
December 26, 2015 at 12:44 pm
I'd review the schedule to see if your full backups are frequent enough and if you're keeping enough of them. Review your recovery point objective to make sure you're...
December 26, 2015 at 12:42 pm
Jeff Moden (12/26/2015)
December 26, 2015 at 12:36 pm
Jason A. Long (12/25/2015)
Jeff Moden (12/25/2015)
Jason A. Long (12/25/2015)
The one I came across a couple days ago...
WHERE LEN(t.SSN) = 9
as opposed to
WHERE t.SSN LIKE [0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]
The LEN check doesn't do it...
December 26, 2015 at 12:32 pm
The link Eirikur posted also contains an excellent discussion on the topic.
December 25, 2015 at 1:18 pm
Wayne Sheffield has an excellent post that explains this very well at http://www.sqlservercentral.com/articles/comma+separated+list/71700/.
December 25, 2015 at 1:16 pm
Like Jeff pointed out, understanding why the restrictions you listed exist is paramount to determining the solution. That's why we ask questions - to understand what's required and the...
December 25, 2015 at 1:13 pm
Welsh Corgi (12/25/2015)
INSERT INTO PrismData.dbo.tblcall
SELECT * -- TOP 5000 arc.*
FROM PrismDataArchive.dbo.tblcallArchive AS arc
WHERE YEAR(arc.Call_Date) IN (1998)
COMMIT TRANSACTION
-- ROLLBACK TRANSACTION
Msg 213, Level 16, State 1, Line 12
Column name or...
December 25, 2015 at 12:55 pm
Kevin, just the way you phrased "bad-data causers" made me think of the horrible offense of storing dates and times in string columns.
December 25, 2015 at 10:05 am
DonlSimpson (12/24/2015)
Revenant (12/24/2015)
Grumpy DBA (12/24/2015)
TomThomson (12/24/2015)
DonlSimpson (12/23/2015)
Ed Wagner (12/23/2015)
eccentricDBA (12/23/2015)
djj (12/23/2015)
Ed Wagner (12/23/2015)
Grumpy DBA (12/23/2015)
anthony.green (12/23/2015)
Ed Wagner (12/23/2015)
SleepDeprived
Fatigue
Mistake
Regret
Resolution
Solution
Suspension
Hanging
Chad
Niger
Algeria
Morocco
December 25, 2015 at 9:59 am
This certainy isn't a comprehensive list, but I think it's a decent start.
While loops or cursors instead of set-based alternatives
Non-SARGable predicates
Multi statement table valued functions
Using SELECT * everywhere
December 25, 2015 at 9:55 am
Anders Pedersen (12/25/2015)
Two of the largest credit charge clearing systems runs on SQL, and has for a long time. The first time I worked on...
December 25, 2015 at 9:46 am
Viewing 15 posts - 4,396 through 4,410 (of 9,399 total)