Viewing 15 posts - 1 through 15 (of 7,190 total)
Mmmm... the question said "without spending a lot of time", so I chose the fourth option!
John
Edit: scrub that - I didn't read the Explanation properly.
May 11, 2023 at 1:25 pm
Was the server changed to Windows and SQL Server Authentication recently? The change won't have taken effect unless SQL Server has been restarted since it was made.
John
April 26, 2023 at 11:27 am
Is modifying SPA so that it writes to a table whenever the linked server is used an option? If not, have you tried setting up an audit?
John
October 13, 2022 at 1:53 pm
I agree with Jeff, Johann and the author of the article. Use char where appropriate, for performance, yes, and also for data integrity. If an invoice number is 10 characters,...
February 11, 2022 at 9:36 am
My guess would be that since the transaction hasn't been committed, it wouldn't form part of the database backup... or at least if it did then it would be rolled...
December 10, 2021 at 2:16 pm
(1) Yes
(2) It covers the state of the database at the moment the backup finishes. There are no locks on user objects, although you may find that wait times are...
December 10, 2021 at 1:14 pm
Not sure what this, is what you're looking for, but it's from the documentation for sys.server_principals:
Permissions
Any login can see their own login name, the system logins, and the fixed...
December 10, 2021 at 1:06 pm
You can't just build a query on the fly like that. You need to use dynamic SQL instead. If you do so and you're accepting user input, be very careful...
December 10, 2021 at 12:02 pm
Calculate the minutes and seconds the same way you did the years, months and days - using DATEDIFF. Formatting of the type you describe is best done in the presentation...
August 26, 2021 at 8:30 am
Steve, what time zone will the PASS sessions take place in, please - Pacific Time?
Thanks
John
August 20, 2021 at 8:42 am
This is also didn't work for me - it said the database was inaccessible. When I GRANTed CONNECT on the primary, it worked, though. I wasn't happy with that, so...
June 17, 2021 at 3:31 pm
Views don't take parameters, which I suspect is what @Table1 and @Table2 are in your example. You will need to write it as a function or a stored procedure instead. ...
November 19, 2020 at 4:17 pm
The tables in your query don't bear any relation to your sample data. And please use a universal format for dates, since I got a character conversion error when I...
October 20, 2020 at 1:15 pm
Sounds like you need database snapshots.
John
October 20, 2020 at 1:06 pm
Check this out. Since you're on SQL Server 2012, what you can audit may be restricted if you don't have Enterprise Edition.
John
October 16, 2020 at 10:08 am
Viewing 15 posts - 1 through 15 (of 7,190 total)