Viewing 15 posts - 2,371 through 2,385 (of 7,187 total)
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
Yes, although there is a two-byte overhead for the variability, so storing "Test" would cost you 6 bytes. But if, for example, you were storing just state codes "AL",...
August 2, 2016 at 2:39 am
Also, choosing the appropriate data type (and scale) helps prevent absurd data from getting into your database - you know, dates that aren't proper dates, phone numbers with text in...
August 2, 2016 at 2:14 am
Another option, if you do regular random test restores of your databases, is to run DBCC CHECKDB on the restored version. Yes, you'll still need the same amount of...
August 1, 2016 at 9:39 am
August 1, 2016 at 9:28 am
Viewing 15 posts - 2,371 through 2,385 (of 7,187 total)