Viewing 15 posts - 391 through 405 (of 7,187 total)
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
Do you mean three columns at the same time? Yes, you can update as many as you like - provided (I think) they're all in the same table.
John
November 1, 2019 at 8:52 am
You have posted your own script suggestion. Does it work? If not, what is the problem - does it give an error message, does it not do what you intend...
October 31, 2019 at 12:02 pm
I think SUM(...) OVER(...) is the way to go, with the columns that are to be grouped by in your PARTITION BY clause.
John
October 28, 2019 at 4:54 pm
Presumably this will work:
COALESCE ('L' + LocationNo, 'A' + AsstNo) AS LocOrAssetI use COALESCE instead of ISNULL - but that's just my preference. You will need to...
October 18, 2019 at 3:03 pm
Viewing 15 posts - 391 through 405 (of 7,187 total)