Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

How do I list the database files contained in a SQL Server 2005 backup file using T-SQL?

For instance:

The restore process will create:

bob.mdf
bob.ldf

etc...

share|improve this question

migrated from stackoverflow.com Jan 21 '12 at 15:01

This question came from our site for professional and enthusiast programmers.

add comment

1 Answer

up vote 2 down vote accepted

RESTORE FILELISTONLY

share|improve this answer
    
This is why gbn is one of my favourites here. Short accurate answers, right to the point. –  datagod Sep 29 '12 at 19:48
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.