Viewing 15 posts - 391 through 405 (of 7,191 total)
I'd guess that if XACT_ABORT is OFF then only the statement that's running at the moment of the timeout will be rolled back. Whether that rollback occurs gracefully and expeditiously...
November 7, 2019 at 3:12 pm
WITH Last24Hrs AS (
SELECT
VisitID
,IdentifierID
,ActivityDateTime
,DATEADD(HOUR,-24,MAX(ActivityDateTime) OVER (PARTITION BY VisitID)) AS _24HrsBefore
FROM #T1
)
SELECT
VisitID
,IdentifierID
,ActivityDateTime
FROM Last24Hrs t
WHERE t.ActivityDateTime >= t._24HrsBefore;
John
November 7, 2019 at 2:54 pm
This is a good reference for connection strings. If you can't find what you're looking for there, just include the SET statement in your code. Probably best to do...
November 7, 2019 at 11:57 am
OK, are you telling me that in case I'm interested, or do you have a follow-up question? Note that it says "Default connection options" in that dialog box. As I...
November 7, 2019 at 11:04 am
If XACT_ABORT is ON, an error will cause the whole transaction to be rolled back; if it's OFF, only the statement being executed will be rolled back. When XACT_ABORT is...
November 7, 2019 at 9:57 am
Thanks for the response.I do agree with everything you have mentioned . But I don’t decide.
I feel your pain. Presumably you're the DBA? If you don't get to make...
November 7, 2019 at 8:53 am
Better still, from an administrative point of view, would be to create a role and add users to it as and when required.
John
November 6, 2019 at 4:48 pm
Why can't you use a trigger? You could investigate SQL Audit instead - I think that would deliver what you're looking for.
John
November 6, 2019 at 12:16 pm
A SQL audit needn't be too much of a burden. Set up your filter carefully, limit the file size and the number of files, and import regularly into a database...
November 6, 2019 at 10:50 am
No, I think Full recovery mode is mandatory - it says here. Dealing with transaction log backups isn't too much extra admin, although I suppose you will need a...
November 4, 2019 at 4:50 pm
The query you posted returns the lowest person_id for every first_name - so you'd get the John with the lowest person_id, the Wally with the lowest person_id, and so on. ...
November 4, 2019 at 4:17 pm
You can use SELECT TOP 1 with and ORDER BY person_id clause.
John
November 4, 2019 at 3:58 pm
Linked servers, CMS, OPENROWSET, Policies, SSRS, SSIS - each has its advantages and its limitations and could form the whole solution or part of it. You'll need to figure out...
November 3, 2019 at 12:29 pm
No. I'm not here to do your (home)work for you. I've given you a link to get you going, and Des has also provided you with a query. Use both...
November 1, 2019 at 9:03 am
Sam
Yes, you can help with execution plans, code smells (of which I've found many in vendor code), deadlock analysis, table and index designs, and so on. However, if you...
November 1, 2019 at 9:01 am
Viewing 15 posts - 391 through 405 (of 7,191 total)