SELECT @cmd = 'restore filelistonly from disk = ''' + @localBackupPath
… Continue Reading ››
Inserting results of FILELISTONLY to a table
I was looking for a code example of this on the web, but couldn't find it, so here it is. You would need to create the @cmd of course with your own variables.