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