Viewing 15 posts - 751 through 765 (of 7,191 total)
I think I must have misunderstood something. The "Correct Answer" section lists the first three options as being the correct answers. The Explanation section then goes on to say "All...
May 22, 2018 at 3:12 am
I think e4d4 is right. Only use NORECOVERY in a BACKUP LOG statement if you intend to restore over the database you're backing up. You should be able to bring...
May 21, 2018 at 3:04 am
Try this. It involves a triangular join, so performance may not be good on large data sets.
WITH BeginningsandEndings AS (
SELECT
...
May 17, 2018 at 7:17 am
SELECT
dBookedTill AS FreeFrom
, LEAD(dBookedFrom,1) OVER (ORDER BY dBookedFrom) AS FreeTo
FROM @t
UNION ALL
SELECT
NULL
, MIN(dBookedFrom)
FROM @t
ORDER BY FreeFrom
May 17, 2018 at 4:59 am
I'm guessing that your BAKINGDATE column has dates in the format mm/dd/yyyy. Those don't make any sense in a British environment. The solution, of course, is to make BAKINGDATE datetime...
May 16, 2018 at 5:33 am
Tapinder
In a CTE, use ROW_NUMBER to partition the rows by AttributeID and number them ordered by VersionID DESC. Then just choose the rows where the row number is...
May 15, 2018 at 7:52 am
So you're only keeping 10 hours' worth of log backups?! When was your last full (or differential) backup made - 2017-11-26T10:41:12?
CleanupTime
Specify the time, in hours,...
May 15, 2018 at 4:52 am
You need more detailed logs than that. Have a look at the Logging section on this page.
John
May 15, 2018 at 4:02 am
Please provide sample data in the form of CREATE TABLE and INSERT statements. How do you determine what rows contain the "recent versions"?
John
May 15, 2018 at 1:05 am
May 11, 2018 at 5:02 am
May 11, 2018 at 4:45 am
In that case, I'm guessing that the connection strings specify msdb as the database. A quick and dirty fix would be to grant the logins access to msdb; the proper...
May 11, 2018 at 3:01 am
Is msdb the default database for the logins that are failing? If so, probably best to change it either to master, or to whatever single user database the login uses.
May 11, 2018 at 2:32 am
You need the full backup, plus every log backup taken after that, up to and including the one taken after the intended recovery point. It doesn't matter whether the log...
May 10, 2018 at 9:34 am
SELECT R1.*
FROM RELTEST...
May 10, 2018 at 7:52 am
Viewing 15 posts - 751 through 765 (of 7,191 total)