Viewing 15 posts - 2,056 through 2,070 (of 2,339 total)
Will something like this get you started?
SELECT TN.MSDATE, CASE WHEN TN.MSDATE > T.StartDate AND TN.MSDATE < T.EndDate THEN DATEPART(yyyy, T.EndDate) END
FROM Tablename TN
INNER JOIN
(SELECT '06/30/' + CONVERT(varchar(4), DATEPART(yyyy,...
May 15, 2015 at 8:17 am
On each of our servers, we have created a 'DBAUtilities" database.
This contains everything for maintenance, monitoring, capturing metrics and so forth.
This is a far better place to...
April 27, 2015 at 9:42 am
Sarah Wagner (4/22/2015)
I doubt it 🙂
Either that, or she's not admitting it!
April 22, 2015 at 9:58 am
We have also been fighting this issue.
We notice it more when clicking from one "folder" to another. Such as procs to tables, databases to management, server to another server.
Some...
April 20, 2015 at 1:55 pm
RonKyle (4/20/2015)
"Best Practices" is so overused
This is a response I've seen from designers who don't think primary and foreign keys are important. And that's just the start. And...
April 20, 2015 at 1:39 pm
RonKyle (4/20/2015)
The function of a relational database is to enforce the business rules
No, it's not. The function of the database is to store information in a manner from which...
April 20, 2015 at 1:37 pm
This does not work:
IF @dbname <> NULL
It needs to be
IF @dbname IS NOT NULL
April 20, 2015 at 1:03 pm
IceDread (4/20/2015)
Jeff Moden (4/20/2015)
Yet Another DBA (4/20/2015)
Jeff Moden (4/18/2015)
April 20, 2015 at 12:55 pm
run_duration is not in milliseconds.
This value 20457 translates to 02:04:57.
The code below should get you started.
isnull(CASE len(run_duration)
...
April 20, 2015 at 10:51 am
I'm merely stating a fact that in small and medium size companies, people don't tend to use DBA's. They use dev that double as "accidental dba's". Now if you make...
April 10, 2015 at 9:19 am
Kyrilluk (4/10/2015)
First of all, why does it suggest that only dev should come up with data to...
April 10, 2015 at 7:47 am
I don't have time to re-write this, but...
1. The 6 selects to load the variables can be one select using case statements
SELECT
@modulo = COUNT(*) %...
April 7, 2015 at 10:43 am
What have you tried? Can you show us what you may have attempted?
March 25, 2015 at 10:35 am
Andrew..Peterson (3/24/2015)
I'm starting to think we all have a bit too much time on our hands. Now if I could just find The Rat Patrol.
That was a great show from...
March 25, 2015 at 8:25 am
sp_addserver @server = 'Servername', @local = 'local'.
This re-sets the value of @@SERVERNAME
March 20, 2015 at 12:07 pm
Viewing 15 posts - 2,056 through 2,070 (of 2,339 total)