use sql command restore database code example Example: sql restore backup query RESTORE FILELISTONLY FROM DISK = 'D:BackUpYourBaackUpFile.bak'