Database Backup Restore

  • Comments posted to this topic are about the item Database Backup Restore

    Best,
    Naseer Ahmad
    SQL Server DBA

  • Nice question. I have never used this option. Good to know!

  • I have taken "TestPartition" Database backup (In that db , 5 table are partitioned with 10 file-groups(.ndf files)) then I executed below command

    RESTORE FILELISTONLY FROM disk='D:\DB\Backup\TestPartition.bak'

    It is showing only mdf and ldf files, It is not showing partitioned secondary file-groups(.ndf files)

    Is there any option to see .ndf files?

  • Few months ago, i posted same kind of question.

    It good to recall it. Thanks 🙂

    Thanks
    Vinay Kumar
    -----------------------------------------------------------------
    Keep Learning - Keep Growing !!!

  • KWymore (6/25/2013)


    Nice question. I have never used this option. Good to know!

    +1 🙂

    ~ Lokesh Vij


    Guidelines for quicker answers on T-SQL question[/url]
    Guidelines for answers on Performance questions

    Link to my Blog Post --> www.SQLPathy.com[/url]

    Follow me @Twitter

  • KWymore (6/25/2013)


    Nice question. I have never used this option. Good to know!

    +1 🙂

    _______________________________________________________________
    To get quick answer follow this link:
    http://www.sqlservercentral.com/articles/Best+Practices/61537/

  • Nice back to basics question - thanks

    -------------------------------Posting Data Etiquette - Jeff Moden [/url]Smart way to ask a question
    There are naive questions, tedious questions, ill-phrased questions, questions put after inadequate self-criticism. But every question is a cry to understand (the world). There is no such thing as a dumb question. ― Carl Sagan
    I would never join a club that would allow me as a member - Groucho Marx

  • PRR.DB (6/25/2013)


    I have taken "TestPartition" Database backup (In that db , 5 table are partitioned with 10 file-groups(.ndf files)) then I executed below command

    RESTORE FILELISTONLY FROM disk='D:\DB\Backup\TestPartition.bak'

    It is showing only mdf and ldf files, It is not showing partitioned secondary file-groups(.ndf files)

    Is there any option to see .ndf files?

    I was unable to replicate this.

    I created a new database with three files (primary, log, and one secondary), backed it up, then checked the output from FILELISTONLY - all three files were there.

    I'll try a few more things, but maybe you can help by posting the CREATE DDL used to create your "TestPartition" database?


    Hugo Kornelis, SQL Server/Data Platform MVP (2006-2016)
    Visit my SQL Server blog: https://sqlserverfast.com/blog/
    SQL Server Execution Plan Reference: https://sqlserverfast.com/epr/

  • nice question 🙂

  • Too easy 🙂 I am amazed how 32% people doesn't know this.

    Probably they are always using the "Restore Database Wizard" from SSMS, where SSMS does this all for them. Another reason why one should not do all the DBA tasks from SSMS, but try to do it with T-SQL.


    Sujeet Singh

  • I misread the syntax and got it wrong. It happens.

    Thanks for the learning opportunity.

  • Good question!!!

  • Hugo Kornelis (6/26/2013)


    PRR.DB (6/25/2013)


    I have taken "TestPartition" Database backup (In that db , 5 table are partitioned with 10 file-groups(.ndf files)) then I executed below command

    RESTORE FILELISTONLY FROM disk='D:\DB\Backup\TestPartition.bak'

    It is showing only mdf and ldf files, It is not showing partitioned secondary file-groups(.ndf files)

    Is there any option to see .ndf files?

    I was unable to replicate this.

    I created a new database with three files (primary, log, and one secondary), backed it up, then checked the output from FILELISTONLY - all three files were there.

    I'll try a few more things, but maybe you can help by posting the CREATE DDL used to create your "TestPartition" database?

    post the backup command as well, maybe you did a filegroup backup.

    ---------------------------------------------------------------------

  • I came really close to misreading the syntax and saying none were correct.

    I do use the tools that are given to me by SSMS. There is a reason they are there. Of course since our primary databases doesn't actually get backed up in the traditional sense I don't get to use Restore in a time when speed is of the essence.

  • Nice to know this...thnx

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

You must be logged in to reply to this topic. Login to reply