Forum Replies Created

Viewing 15 posts - 1 through 15 (of 43 total)

  • RE: Database backups best practice

    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_' +...

  • RE: Backup maintenance issue

    Just as a general question, couldn't you use a maintenance plan to do the backups and deletes of the old backups?

  • RE: Management Studio scripting procedures using sp_executesql

    Thanks Jeffery, it worked for me also.

  • RE: Restore Verifyonly for the backups.

    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...

  • RE: BCP copy out failed

    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...

  • RE: No Overtime

    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...

  • RE: Troubles running sp_msForEachTable

    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

  • RE: Is this correct use of WITH (NOLOCK, READUNCOMMITTED) in delete?

    select * from mytable with (nolock)

    or

    select * from mytable (nolock)

  • RE: After log shipping after how many days or hours we can remove the Log Backups & Backup history?

    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...

  • RE: LogShipping_Copy fail

    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...

  • RE: LogShipping_Copy fail

    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...

  • RE: LogShipping_Copy fail

    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...

  • RE: LogShipping_Copy fail

    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...

  • RE: LogShipping_Copy fail

    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...

  • RE: Replication Vs Mirroring

    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...

Viewing 15 posts - 1 through 15 (of 43 total)