Viewing 15 posts - 2,371 through 2,385 (of 7,191 total)
Thanks Mike - that was quick!
I get it now... I assume we'll be looking at tables later, so on with the Stairway!
Thanks again
John
August 4, 2016 at 2:52 am
What do you mean by "only"? What log file growth are you seeing? What other index rebuilds occur in the hour between the previous transaction log backup and...
August 4, 2016 at 2:49 am
Thanks Mike. I've been following the series so far and it's very enlightening! There's just one bit I'm struggling with:
Structured data is data loaded into tables in a...
August 4, 2016 at 2:30 am
Since it's a DR server, you're going to need a way to propagate changes to live jobs into DR, so why not use that same technique to do the initial...
August 4, 2016 at 2:17 am
Is your server Windows 2008? Perhaps that limits the available feature set for SQL Server 2016? (Although I'd have thought you wouldn't get past the first couple of...
August 3, 2016 at 4:42 am
You can't do it like that, for two reasons. First, you can't use a variable to represent the name of the stored procedure. If you don't know at...
August 3, 2016 at 2:58 am
Go to the topic in Books Online for each of the views and functions you're using. There'll be a Permissions section, which will tell you what permissions you need...
August 2, 2016 at 9:45 am
Is it being created by another job or by a store procedure? Query the command column of msdb.dbo.sysjobsteps, and the definition column on sys.sql_modules in every database to see...
August 2, 2016 at 9:21 am
Jamie
You need to choose a different instance name for the new installation, even if you are installing different features.
John
August 2, 2016 at 9:02 am
Perhaps we can all agree on the following?
* There are storage formats and presentation formats
* The user/programmer cannot change the storage format, but he can change the presentation format
* The...
August 2, 2016 at 8:07 am
Well, that was just an example. You could have, for example, a start date and an interval as parameters to your report, and then calculate the other dates from...
August 2, 2016 at 5:30 am
Given that this is a data warehouse application, all the data is sourced from existing databases, so in theory it should be correct. That said I did work on an...
August 2, 2016 at 4:47 am
LTRIM only removes spaces. Use REPLACE to replace each "-" with a blank (""). Be careful if you have any non-leading "-"s that you want to keep, though.
John
August 2, 2016 at 4:25 am
Here's one way of doing it:
DECLARE @CurrentStartDate date = '20160718';
DECLARE @CurrentEndDate date = '20160724';
DECLARE @PreviousStartDate date = '20150718';
DECLARE @PreviousEndDate date = '20150724';
SELECT
(SELECT COUNT(WorkOrder)
FROM TableA
WHERE RequireByDate BETWEEN @CurrentStartDate AND @CurrentEndDate) As...
August 2, 2016 at 4:22 am
Viewing 15 posts - 2,371 through 2,385 (of 7,191 total)