Forum Replies Created

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

  • RE: Grouping by pairs, order agnostic

    Your code is definitely simpler. But the performance (at least on my machine) is lacking. I just stopped it after letting it run for 10 minutes. My table has about...

    _______________________________________________________________________________________________
    Bob Pusateri
    Microsoft Certified Master: SQL Server 2008

    Blog: The Outer Join[/url]
    Twitter: @SQLBob

  • RE: Grouping by pairs, order agnostic

    Thanks for all the tips! I came up with a multi-step solution that so far seems to get me what I need, and I'm happy to share. I'll do a...

    _______________________________________________________________________________________________
    Bob Pusateri
    Microsoft Certified Master: SQL Server 2008

    Blog: The Outer Join[/url]
    Twitter: @SQLBob

  • RE: Log Shipping scans files but doesn't restore

    Alright, after much more experimentation, it turns out that what I'm trying to do *can* work, provided that the formatting of the log backup file names exactly matches what log...

    _______________________________________________________________________________________________
    Bob Pusateri
    Microsoft Certified Master: SQL Server 2008

    Blog: The Outer Join[/url]
    Twitter: @SQLBob

  • RE: Log Shipping scans files but doesn't restore

    You are correct, but the metadata is all there. I populated it with the log shipping stored procedures as detailed in BOL:

    http://technet.microsoft.com/en-us/library/ms188708(v=sql.105).aspx

    If the metadata wasn't there, nothing would work at...

    _______________________________________________________________________________________________
    Bob Pusateri
    Microsoft Certified Master: SQL Server 2008

    Blog: The Outer Join[/url]
    Twitter: @SQLBob

  • RE: Log Shipping scans files but doesn't restore

    Because this is not true log shipping. I have no control over the primary server - it belongs to the vendor and I can't touch it. Instead, they are sending...

    _______________________________________________________________________________________________
    Bob Pusateri
    Microsoft Certified Master: SQL Server 2008

    Blog: The Outer Join[/url]
    Twitter: @SQLBob

  • RE: Log Shipping scans files but doesn't restore

    Good point, Steve.

    Actually I busted out Process Monitor yesterday to see how it was scanning the log files in the directory and found out that file names do matter -...

    _______________________________________________________________________________________________
    Bob Pusateri
    Microsoft Certified Master: SQL Server 2008

    Blog: The Outer Join[/url]
    Twitter: @SQLBob

  • RE: Log Shipping scans files but doesn't restore

    I'd say this behavior is pretty consistent - I have re-restored the full backup 4-5 times and have the same behavior each time.

    _______________________________________________________________________________________________
    Bob Pusateri
    Microsoft Certified Master: SQL Server 2008

    Blog: The Outer Join[/url]
    Twitter: @SQLBob

  • RE: Log Shipping scans files but doesn't restore

    Good question. This is a new setup so no it has never worked before (because it has never been attempted). However I can successfully restore the log backups manually, so...

    _______________________________________________________________________________________________
    Bob Pusateri
    Microsoft Certified Master: SQL Server 2008

    Blog: The Outer Join[/url]
    Twitter: @SQLBob

  • RE: Differential Sizes Increase After Index Rebuild

    Hi Jim,

    A differential backup contains all the changes made since the last full backup.

    In your case, if you are taking a full backup and then rebuilding the indexes afterwards,...

    _______________________________________________________________________________________________
    Bob Pusateri
    Microsoft Certified Master: SQL Server 2008

    Blog: The Outer Join[/url]
    Twitter: @SQLBob

  • RE: Table Level Rescovery/Restoration

    Hi Inder,

    The short answer is no, you cannot natively restore a single table. Without a third-party tool your best bet is probably to restore the database somewhere else and copy...

    _______________________________________________________________________________________________
    Bob Pusateri
    Microsoft Certified Master: SQL Server 2008

    Blog: The Outer Join[/url]
    Twitter: @SQLBob

  • RE: Backup plan confusion!

    Probably the easiest option (if possible) is for the offsite backups to be copied off the NAS you're already using, so you don't have to create extra backups.

    If that's not...

    _______________________________________________________________________________________________
    Bob Pusateri
    Microsoft Certified Master: SQL Server 2008

    Blog: The Outer Join[/url]
    Twitter: @SQLBob

  • RE: Transaction log backp - 15 Mins Frequency

    I'd say the absolute worst-case for data loss would be 15 minutes, but that's assuming that the transaction log is totally destroyed and unable to be recovered, and your log...

    _______________________________________________________________________________________________
    Bob Pusateri
    Microsoft Certified Master: SQL Server 2008

    Blog: The Outer Join[/url]
    Twitter: @SQLBob

  • RE: Backup scripts vs. Maint Plans

    To me, the advantage of Maintenence Plans is that they're easy - especially for people who need to get maintenance tasks done but don't know how to write T-SQL (think...

    _______________________________________________________________________________________________
    Bob Pusateri
    Microsoft Certified Master: SQL Server 2008

    Blog: The Outer Join[/url]
    Twitter: @SQLBob

  • RE: How do I determine the full backup file's name?

    I'm not aware of any views or SPs that expose this information - I've only ever seen examples using the tables.

    I of course can't guarantee anything, but given that...

    _______________________________________________________________________________________________
    Bob Pusateri
    Microsoft Certified Master: SQL Server 2008

    Blog: The Outer Join[/url]
    Twitter: @SQLBob

  • RE: How do I determine the full backup file's name?

    Probably the easiest way is to look at the physical_device_name column of the msdb.dbo.backupmediafamily system table. This table contains an entry for each backup, and with some joins to other...

    _______________________________________________________________________________________________
    Bob Pusateri
    Microsoft Certified Master: SQL Server 2008

    Blog: The Outer Join[/url]
    Twitter: @SQLBob

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