Viewing 15 posts - 2,761 through 2,775 (of 7,191 total)
What data type is the ScheduledDateTime column in your database?
John
March 14, 2016 at 7:51 am
smitty-1088185 (3/7/2016)
SELECT
spid
,sp.STATUS
...
March 11, 2016 at 2:27 am
Interesting. I had assumed that NULL is always listed first in an ORDER BY. Indeed it is, if you order ascending. But if you add DESC to...
March 11, 2016 at 2:09 am
franky.Piferoen (3/10/2016)
I forgot in the previous reply to mention the error from the errorlog
Login failed for user 'SomeUser'. Reason: Could not find a login matching the name provided
Thx for the...
March 11, 2016 at 1:40 am
Use proper date arithmetic instead of messing around with character conversions:
SET @Start =CASE WHEN DATEPART(mi,@Date) IN (0,15,30,45)
THEN DATEADD(mi,DATEDIFF(mi,0,DATEADD(mi,-15,@Date)),0) -- subtracts 15 minutes and strips off s and ms
END
SELECT @Start
John
March 10, 2016 at 9:13 am
Brandie
I'm guessing you've set up mirroring on the server?
SELECT
l.name AS LoginName
,e.name AS EndpointName
FROM sys.server_permissions p
JOIN sys.server_principals l ON p.grantor_principal_id = l.principal_id
JOIN sys.endpoints e ON p.major_id = e.endpoint_id
WHERE p.class_desc = 'ENDPOINT'
John
March 10, 2016 at 8:03 am
The fact that the seed value wasn't stated led me to the answer. If "1" had been one of the options, it would have been more difficult, since that's...
March 10, 2016 at 7:43 am
Frank Cazabon (3/10/2016)
John Mitchell-245523 (3/10/2016)
I don't know how to turn on/off parallelism, Google here I come.
Be careful - you don't (necessarily) want to turn off parallelism on the whole server....
March 10, 2016 at 7:05 am
The error message returned to a user whose login has failed is, by design, not very detailed. You can find out more about the reason for the login failure...
March 10, 2016 at 6:41 am
Yes, and you might also try the LEAD and LAG functions if you have access to SQL Server 2012 or higher.
John
March 10, 2016 at 6:38 am
Six seconds doesn't sound unreasonable for that lot on a table that size. What maintenance do you do on your indexes? Have you tried running the queries without...
March 10, 2016 at 6:35 am
prettsons (3/7/2016)
Hi Newbie,Compress the backup folder to get more free space.
Surely a "recovery expert" wouldn't have the backups on the same drive as the database files - or have I...
March 9, 2016 at 2:14 am
Gabriel P (3/8/2016)
March 8, 2016 at 6:05 am
SELECT
ID
, Info
, Detail
, ...
March 7, 2016 at 7:54 am
sys.dm_exec_requests has a column called blocking_session_id. Do a self join on session_id = blocking_session_id and a second CROSS APPLY to get the text itself.
John
March 7, 2016 at 5:09 am
Viewing 15 posts - 2,761 through 2,775 (of 7,191 total)