Viewing 15 posts - 1,006 through 1,020 (of 1,409 total)
You can build the command for the LOG restore by querying the MSDB..BACKUPFILE table. Something like this:
Removed because the code wasn't correct
See post below for correct code
You can adjust and/or...
July 1, 2013 at 1:22 am
chris.miller1 (6/26/2013)
July 1, 2013 at 1:09 am
erikd (6/26/2013)
, but I wanted to try it without a cursor to build the column list.
The code you posted in the first post does NOT contain a cursor. It does...
July 1, 2013 at 12:32 am
Hi Sean,
That's an interesting link. I've never thought of using the "0" in the DATEDIFF function, but it's an nice approach and consistent for the different dateparts (and therefor more...
June 28, 2013 at 7:43 am
The database will not come ONLINE because there is a mismatch between the location of the mdf-file stored in the system database and the physical location of the file on...
June 28, 2013 at 6:23 am
The "state 10" could also refer to problems with the domain controller. The domain controller could be under stress or it could (temporarily) not be reached due to network issues.
Are...
June 28, 2013 at 5:52 am
As from Aaron Bertrands blog http://sqlblog.com/blogs/aaron_bertrand/archive/2011/01/14/sql-server-v-next-denali-additional-states-for-error-18456.aspx:
The first error in your post (State 38:)
The database specified in the connection string, or selected in the Options > Connection Properties tab of the...
June 28, 2013 at 5:37 am
A NULL value is not allowed in the TOP function, hence the error. Change the number 2000 in the first script to a high number equal to or higher than...
June 28, 2013 at 5:31 am
SQLCrazyCertified (6/26/2013)2013-06-26 15:21:14.642 Agent message code 20052. The process could not access database ‘DatabaseName’ on server 'ServerName'.
2013-06-26 15:21:14.642 Category:NULL
Source: Microsoft SQL Native Client
Number: 4060
Message: Cannot open database "DatabaseName"...
June 28, 2013 at 4:59 am
Looks like the original poster has made a double post, see http://www.sqlservercentral.com/Forums/Topic1468474-384-1.aspx
June 28, 2013 at 4:17 am
Restore the last full and differential backup from primary on secundary and leave the database in NORECOVERY or STANDBY. Restore each log backup on secundary after this is created on...
June 28, 2013 at 3:42 am
Create a reference or tally table that holds all the dates of the period you need (i.e. 365 rows per year). Select the desired date range from this reference table...
June 28, 2013 at 3:20 am
Are there things changed on your instance (databases removed, recovery modes changed, etc.)?What are the steps and actions you've defined in your maintenance plan? Do you run the maintenance plan...
June 28, 2013 at 1:47 am
Take a look at the two links below. It is a bit of reading, but explains and solves your issue:
June 28, 2013 at 1:17 am
xmanletoy (6/27/2013)
Msg 205, Level 16, State 1, Line 1
All queries combined using a UNION, INTERSECT or EXCEPT operator must have an equal...
June 27, 2013 at 11:51 pm
Viewing 15 posts - 1,006 through 1,020 (of 1,409 total)