Viewing 15 posts - 21,061 through 21,075 (of 59,072 total)
dwain.c (4/9/2015)
I've written on Calendar tables[/url] and how they can be used (An Easter SQL[/url]). Clearly...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 9, 2015 at 6:14 pm
I strongly recommend NOT using VARCHAR of any type for Old/New values in such a table. Consider using SQL_VARIANT, instead. You don't really want to audit blobs anyway.
--Jeff Moden
Change is inevitable... Change for the better is not.
April 9, 2015 at 5:10 pm
Bill Talada (4/8/2015)
SELECT crdate, DATEDIFF(MINUTE,'19000101', crdate) / 15
FROM sysobjects
ORDER BY DATEDIFF(MINUTE,'19000101', crdate) / 15
WITH x AS
(
SELECT DATEDIFF(MINUTE,'19000101', crdate) / 15 as QuarterHour
FROM sysobjects
)
SELECT QuarterHour, COUNT(*)
FROM x
GROUP by QuarterHour
ORDER by QuarterHour
;
That...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 9, 2015 at 5:04 pm
Ed Wagner (4/9/2015)
SQLRNNR (4/9/2015)
@##$@&*&%#@WTF
Peer Review
--Jeff Moden
Change is inevitable... Change for the better is not.
April 9, 2015 at 4:59 pm
tcronin 95651 (4/9/2015)
--Jeff Moden
Change is inevitable... Change for the better is not.
April 9, 2015 at 2:04 pm
Eirikur Eiriksson (4/9/2015)
tcronin 95651 (4/9/2015)
--Jeff Moden
Change is inevitable... Change for the better is not.
April 9, 2015 at 2:01 pm
PB_BI (4/9/2015)
Show your DBA that, if they continue to argue the point then they are a moron of the highest order.
Not really. Without using FLOAT datatypes, you calculate a...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 9, 2015 at 8:14 am
Grant Fritchey (4/9/2015)
Check Database IntegrityDatabase Backups
Log Backups
Backup Testing
Statistics Maintenance
Index Maintenance
Those are the basics I think.
Just to add to that fine list... Checks on performance and resource usage (usually against a...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 9, 2015 at 8:09 am
immaduddinahmed (4/9/2015)
my data is looks like this,
Date---------------------------------------A
2015-03-01 13:38:07.343----------------1
2015-03-01 14:04:04.460----------------1
2015-03-02 19:33:55.117----------------3
2015-03-02 19:33:55.117----------------4
2015-03-02 19:39:26.580----------------1
i want data looks like this
Date-------------------------------------------A
Day 1------------------------------------------2
Day 2------------------------------------------8
please can any one provide me a query.
please help me out
Thanks for...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 9, 2015 at 8:05 am
AncientCitySQL (4/8/2015)
--Jeff Moden
Change is inevitable... Change for the better is not.
April 8, 2015 at 9:05 pm
I don't know why people insist on cluttering up triggers nor even most code with custom error handling especially when all most people do at best is rethrow the same...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 8, 2015 at 8:34 pm
CELKO (4/8/2015)
Absolute rubbish and you know it, Joe. What would you use instead?
Strings, with validation and verification. The validation is usually done with regular expressions and/or check digits....
--Jeff Moden
Change is inevitable... Change for the better is not.
April 8, 2015 at 8:29 pm
Brandie Tarvin (4/8/2015)
Jeff, what did you mean by "retro code" when you were talking about how hosed up SSMS got?
I'll see if I can find the links I was looking...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 8, 2015 at 4:39 pm
richard.bowles (4/8/2015)
--Jeff Moden
Change is inevitable... Change for the better is not.
April 8, 2015 at 3:26 pm
We've had similar problems in the past. It turned out to be tape backups (BERemote.exe to be specific) hitting the backups on the disks, which were in the wrong...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 8, 2015 at 2:59 pm
Viewing 15 posts - 21,061 through 21,075 (of 59,072 total)