Viewing 15 posts - 1 through 15 (of 43 total)
Here is how I parse the name of the backup file
Select @vDBName = DatabaseName From @vDBList Where DBID = @vCount
Set @vNewpath = @vBackupPath
Set @vFileName = @vDBName + '_Full_' +...
February 22, 2012 at 1:43 pm
Just as a general question, couldn't you use a maintenance plan to do the backups and deletes of the old backups?
December 16, 2011 at 11:15 am
Thanks Jeffery, it worked for me also.
December 13, 2011 at 6:13 am
Taking SSCommitted's code and wrapping it in a sp_msforeachdb you can run the below:
sp_msforeachdb '
SELECT ''?'',c.physical_device_name , a. backup_start_date
FROM msdb.dbo.backupset a join msdb.dbo.backupmediaset b ON a.media_set_id = b.media_set_id
JOIN msdb.dbo.backupmediafamily...
December 9, 2011 at 8:42 am
So you are saying that this ran yesterday and the day before and etc but now it won't run. If this is the case, then someting has changed, probably...
December 7, 2011 at 8:18 am
After reading the editorial and the comments I have somewhat mixed feelings and am struck with these three thoughts:
1.) It's not my job, it is my employers job and...
December 5, 2011 at 8:51 am
Try the following from a query window on the database in question
create table #temp(tablename varchar(120), reccount int)
go
sp_msforeachtable 'insert #temp select ''?'',count(*) from ?'
select * from #temp
November 28, 2011 at 12:52 pm
select * from mytable with (nolock)
or
select * from mytable (nolock)
November 21, 2011 at 11:58 am
I would keep 4 or 5 days worth of backups, upcoming Thanksgiving holidays, case for 5 days worth.
Technically, after it is copied to the secondary location it is...
November 21, 2011 at 11:50 am
The choice to have the log shipping be standby or restore mode is made back when you are initially setting up log shipping. It looks you need to look...
November 1, 2011 at 12:51 pm
Steps for failover:
Run the copy job and also Run the restore job at the same time. Ensure that there are no more files to copy or restore.
run restore with...
October 28, 2011 at 9:00 am
So, I think that your question is, how do you restore the log files to the offline copy when the restore job is turned off during the day? Currently...
October 28, 2011 at 6:04 am
The error message about not in recovery mode is telling you to start again :(.
In log shipping the secondary database is usually either in standby, ( users can...
October 26, 2011 at 11:50 am
When setting up log shipping, the SQL Server Agent SERVICE owner needs to be a login with enough rights on the other server to be able to copy files to...
October 26, 2011 at 8:13 am
For your reporting, replicated database, you might want to create another database on the subscriber server and keep all report definitions, sp's, views, stored procs in this database, referencing the...
March 8, 2011 at 9:33 am
Viewing 15 posts - 1 through 15 (of 43 total)