Viewing 15 posts - 1,261 through 1,275 (of 7,191 total)
It's dead easy if you've got it in Excel. Add a new column with a sequence number in, then a second new column with a formula something like...
September 21, 2017 at 4:23 am
Why is it important to alter the logins in a particular order? If you really need to, you could try something like this:
SELECT 'ALTER LOGIN '...
September 21, 2017 at 3:53 am
I don't know - I've never used that. But it should be fairly easy for you to test out.
John
September 19, 2017 at 10:09 am
Probably the best reason not to grant the permission is that you want to keep your database design confidential.
John
September 19, 2017 at 9:59 am
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
Viewing 15 posts - 1,261 through 1,275 (of 7,191 total)