Viewing 15 posts - 2,206 through 2,220 (of 3,481 total)
I would start by adding some code to log the start time and end time of your jobs in a table somewhere. Then you can query that for "normal"/average...
November 6, 2015 at 11:03 am
one thing that Eirikur left out was the fact that you can grant rights to stored procedures to individual groups/users and save yourself a lot of hassle that way too....
November 6, 2015 at 10:46 am
Why not just create a Calendar table with all the dates you want (no gaps!) and then just outer join the other tables to it? Then you can do totals...
November 3, 2015 at 9:41 pm
What are you trying to get in your report? That part's not totally clear. What does the second number mean?
October 30, 2015 at 9:52 am
There's some pretty good stuff on YouTube by WiseOwl. A few of those helped me a lot.
October 30, 2015 at 9:51 am
depends on what version of SQL Server you're using. In 2012, it's easy:
SELECT personID
, Name
, COUNT(*) OVER (PARTITION BY Name ORDER BY personID ROWS UNBOUNDED PRECEDING) AS NameCount
FROM Person
ORDER...
October 28, 2015 at 9:01 pm
You have to modify the connection to the database.
How to use a stored procedure for the source of a table in PowerPivot.
1. Go to the DATA tab.
2. Go to From...
October 27, 2015 at 11:17 pm
Are you using PowerPivot? Sounds like a homework assignment... what have you tried?
October 27, 2015 at 5:52 pm
Best way? Honestly, I would split off the date to a separate column, and then maybe index it. Then you can just use regular date math. The problem...
October 27, 2015 at 2:51 pm
The easiest way would probably be to use a calendar table and mark each holiday. Then you could just exclude those from your MAX query. Lynn Pettis posted a...
October 21, 2015 at 5:17 am
Here's a grid showing the differences... well, some of them:
http://www.fmsinc.com/MicrosoftAccess/SQLServerUpsizing/express/index.html
So it kind of depends on what you need SQL Server to do. The free versions are okay if you're just...
October 8, 2015 at 8:45 pm
If you're using the database primarily for storage, you could probably get by with SQL Server Express, which is free. I would suggest downloading Ola Hallengren's scripts to manage...
October 8, 2015 at 8:05 pm
If you are lucky and have 2012, then you can use LAG, something like this:
SELECT Client_ID
, EFF_FR
, EFF_To
, LAG(EFF_To,1) OVER (PARTITION BY Client_ID ORDER BY Eff_Fr) AS Prev
FROM (
SELECT 1001...
October 8, 2015 at 11:47 am
This should work for SQL2008.
Note: I cheated and created a table of dates, so that I could force the existence of every date in the range, regardless of whether there...
October 8, 2015 at 1:38 am
Viewing 15 posts - 2,206 through 2,220 (of 3,481 total)