Viewing 15 posts - 1,261 through 1,275 (of 7,187 total)
Well, yes - if the users don't need the permission, don't grant it. Follow the principle of least privilege.
John
September 19, 2017 at 9:32 am
Like Luis said, what have you tried? I'm not here to do your job for you. Hint: use the DATEPART function.
John
September 19, 2017 at 9:24 am
Andrew
If, for example, the users will be troubleshooting performance problems, then they'll need to know the definitions of stored procedures, data types of columns and so on. That's...
September 19, 2017 at 9:21 am
As I understand it (and things may have changed since I last looked at it), you can license only one of your cluster nodes if you intend to run all...
September 19, 2017 at 9:19 am
WITH StartandEnd AS (
SELECT
Rid
, MIN(Start) AS Early
, MAX(End) AS Late
FROM MyTable
GROUP BY Rid
)
SELECT
Rid
, DATEDIFF(second,Early,Late) AS...
September 19, 2017 at 9:04 am
Good question. Let's investigate.
USE tempdb;
SELECT
-1 AS Col1
, 0 AS Col2
, 1 AS Col3
, 65 AS Col4
, 32768 AS Col5
September 19, 2017 at 8:31 am
Well, it's the same answer, just rendered differently. Actually, it's different data types. Run this, and all will become clear.
SELECT
4.0 AS Col1
, CAST(4.0...
September 19, 2017 at 7:50 am
What you told SQL Server is that 24GB is the most memory it may use. If you don't have enough data to fill the buffers, or if you don't use enough...
September 19, 2017 at 7:36 am
September 19, 2017 at 7:06 am
No, you only need it in the Sales Order table, otherwise you introduce redundancy and hence risk the integrity of your data. Don't denormalise to simplify your queries unless this...
September 19, 2017 at 3:28 am
Absolutely. Indeed, if the relationship between those two tables is one-to-one, why have separate tables at all? You could put everything in one table.
John
September 19, 2017 at 2:55 am
DROP TABLE #Results
CREATE TABLE #Results (
SchemaName sysname NOT NULL
, DBName sysname NOT NULL
, TableName sysname NOT NULL
, IndexName sysname NULL
, Frag decimal NOT NULL
September 19, 2017 at 2:15 am
Yes, you probably do need something a bit more sophisticated than just a calendar table. The snippet below will convert your Dates table into a table that just shows the...
August 25, 2017 at 9:22 am
Create a calendar table in your database, with weekends and other non-working days marked off. You then only need to add another predicate to your WHERE clause:WHERE...
August 25, 2017 at 6:55 am
I would just restore the databases from where the backups are. You may need to tweak some NTFS permissions, and maybe change some drive letters to UNCs, but it'll cut...
August 25, 2017 at 4:46 am
Viewing 15 posts - 1,261 through 1,275 (of 7,187 total)