Dropped FileGroup/Files still show up in Sys.Master_Files and MSDB.dbo.backupfile

 Hello all,
I am wondering why is that when a filegroup/file is removed from the DB, it still shows up in sys.master_files and msdb.dbo.backupfile.
To reproduce, just create a database and add a filegroup or file to an existing file and delete that filegroup\file.
Now,Query Sys.master_files and you can still see the deleted Filegroup/file for the database. Of course the State_desc shows as 'Offline' but I am wondering why it is not removed completely.
Also, if you take a backup and query the msdb.dbo.backupfile, it will show up there as well. Again, State_desc = 'Dropped' but why is it not removed completely.
Thank you and have a wonderful day.
Hope it Helps!!

Hi Andrew--Msdb.dbo.backupfile showing online is correct because the backup was taken when file group was active. However, I do not see what you are seeing, ie, when I drop the filegroup/file, i still see it in the sys.master_files. and in msdb.dbo.backupfile.
I tested this is on both sql2008R2 build 10.50.4000 and sql 2012 sp1.
below is the script..
CREATE DATABASE [TestFileGroup] ON PRIMARY
( NAME = N'TestFileGroup', FILENAME = N'F:\Backup\TestFileGroup.mdf' , SIZE = 4072KB , FILEGROWTH = 1024KB ),
FILEGROUP [TestFG]
( NAME = N'TestFile', FILENAME = N'F:\Backup\TestFile.ndf' , SIZE = 4072KB , FILEGROWTH= 1024KB )
LOG ON
( NAME = N'TestFileGroup_log', FILENAME = N'F:\Backup\TestFileGroup_log.ldf' , SIZE = 1024KB , FILEGROWTH = 10%)
GO
USE [TestFileGroup]
GO
IF NOT EXISTS (SELECT name FROM sys.filegroups WHERE is_default=1 AND name = N'PRIMARY')
ALTER DATABASE [TestFileGroup] MODIFY FILEGROUP [PRIMARY] DEFAULT
GO
select state_desc,Name,getdate() from sys.master_files where database_id= db_ID('TestFileGroup')
BACKUP DATABASE testFileGroup TO DISK = N'F:\Backup\TestFG.bak' with init,Format
USE [TestFileGroup]
GO
ALTER DATABASE [TestFileGroup] REMOVE FILE [TestFile]
GO
ALTER DATABASE [TestFileGroup] REMOVE FILEGROUP [TestFG]
GO
select State_desc,Name,getdate() from sys.master_files where database_id= db_ID('TestFileGroup')
BACKUP DATABASE testFileGroup TO DISK = N'F:\Backup\TestFG.bak' with init,Format
select A.Backup_set_id,A.State_desc,logical_name,Database_Name,getdate() from msdb.dbo.backupfile A Inner join msdb.dbo.backupset B on B.backup_set_id=A.backup_set_id
where database_Name = 'TestFileGroup' and A.backup_set_id = (Select max(backup_set_id) from msdb.dbo.backupset where database_Name = 'TestFileGroup' )
The above queried also returned 'DROPPED' filegroup. (I could upload the screen shot but it errors saying i could upload only 2 images)
I tired querying the sys.master_files and took a backup and queried msdb.dbo.backupfile after restarting the instance and I still see the same thing...
Hope it Helps!!

Similar Messages

  • Dynamic link in Encore to get AE project, bluray, after transcoding, file still shows untranscoded

    Hi,
    I have an After Effects file. I have several comps that are 1920x1080 at 29.97 drop frame. When I go to Encore, I use, Import After Effects Composition and import several compositions from my AE project. I've tried using both Automatic transcode settings and I've tried to set the settings myself. When I transcode, Encore goes through the motions, but when it's done, the file still shows "Untranscoded". I have checked the project folder and confirmed that the transcoded files are indeed there, but Encore still shows them as untranscoded. What is going on?
    Thanks,
    Stan

    Hi,
    Transcod your comp in AME. Choose H.264 Blu-Ray if you have more than 2 hours videos.
    Bye
    Steph

  • I burned some files onto a DVD-R disc using my MacBook Air.  I did it by dropping the files onto the DVD icon in Finder and burned it right there.   If I put the dics into my DVD Player, it plays just fine.  If I insert it into a computer, it opens t

    I burned some files onto a DVD-R disc using my MacBook Air.
    I did it by dropping the files onto the DVD icon in Finder and burned it right there. 
    If I put the dics into my DVD Player, it plays just fine.  If I insert it into a computer, it opens the disc like a memory stick or something: I can open the files, but it won't play via Macs DVD Player. Can I do something so Macs will recognize the disc as a Dvd?

    I burned some files onto a DVD-R disc using my MacBook Air.
    I did it by dropping the files onto the DVD icon in Finder and burned it right there. 
    If I put the dics into my DVD Player, it plays just fine.  If I insert it into a computer, it opens the disc like a memory stick or something: I can open the files, but it won't play via Macs DVD Player. Can I do something so Macs will recognize the disc as a Dvd?

  • HT5621 I changed my ID Apple with another email, i received the confirmation, i changed my password and also received the confirmation but when i try to download something on my iPhone it still shows me my okd email and nothing works ! ahhhhh what and how

    I changed my ID Apple with another email, i received the confirmation, i changed my password and also received the confirmation but when i try to download something on my iPhone it still shows me my old email and nothing works ! ahhhhh what and how do i solve this ?

    On your iPhone go to Settings > Store.
    Select the Apple ID at the bottom.
    Select Sign Out at the menu selection provided.
    Follow this by signing in with your new Apple ID/iTunes store account.
    All apps - all paid and free apps include DRM protection which is tied to the iTunes account that was used to download the apps. In order to install an app update for the apps downloaded with your previous Apple ID/iTunes account, you will need to use that account and password.

  • I just changed my user name to my e-mail address on my iMac. It works fine there but when I try to use my iPhone it still shows my old user name and will not let me enter??

    I just changed my user name to my e-mail address on my iMac. It works fine there but when I try to use my iPhone it still shows my old user name and will not let me enter??

    There is no user name needed to "enter" or use iPhones...
    Assuming you mean your iTunes Store account ID:
    Settings > Store > tap ID > sign out > sign in with new ID

  • My IPhone has been charged for at least 3 hours still showing the low battery icon and not turning on, normally when my phone is in low battery it will automatically pop up the apple icon but now it's not turning on :( someone pleaseeeee help me!

    My IPhone has been charged for at least 3 hours still showing the low battery icon and not turning on, normally when my phone is in low battery it will automatically pop up the apple icon but now it's not turning on someone pleaseeeee help me! Thanks!

    Hi Windy08,
    If you are having an issue with charging your iPhone, you may want to start your troubleshooting with the steps in this article -
    If you can’t charge your iPhone, iPad, or iPod touch - Apple Support
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • Deleted files still showing/opening in MS Excel

    Hi
    I have 6 files in MS excel that were deleted from my docs in finder and I did secure empty of the trash.  However, the files still appear and can be opened in excel. I tried searching for them by file name but can't seem to locate where excel is hiding them on my MacBook Air. I'm running Mountain Lion 10.8.3 and Microsoft Office for Mac 2011.
    Any Suggestions?
    Thanks

    Red Dwarf - Thanks for the reply, the files were not in emails and i was not able to get the yellow box but you gave me another idea. I added a footer to the document with the path name to see where it was and discovered that it was saving it as a template.  So after more searching I was able to find a solution on an office support page which I have shared below.  Thanks
    In the Finder, open /Users/ username/Library/Application Support/Microsoft/Office/User Templates/My Templates.
    NOTE   If you are using Mac OS X 7 (Lion), the Library folder is hidden by default. To show the Library folder, in the Finder, click the Go menu, and then hold down OPTION .
    Drag the templates that you want to delete to the Trash.

  • Deleted files still shows in playlist

    I've deleted several files but they still show in my playlist.    I've tried shift delete and it didn't help.
    I tried right click and Get Info, it shows their locations as http://feedproxy.google.com/etc...etc...etc...   All other undeleted files are on my local drive.
    Anyone else seen this? 

    Just found something.
    In my podcast, there is a My Episodes tab and a Feed tab.    These files even though deleted from iTunes and my computer, still show up in the Feed tab with cloud icons to be re-downloaded.  That's where the playlists are getting these files from.
    Never had this issue before.  I added another criteria to the smart playlist that the files had to be on my computer and that fixed it.

  • Deleted photo and thumbnail still shows up in album view and camera roll

    Hi, whenever i delete a photo on either my ipad(2) or iphone(4s), the thumbnail of the deleted photo still shows up in the album view and camera roll.
    Also, a picture that i deleted months ago (have saved other photos since then, and replaced the thumbnail) from my ipad randomly showed up in the album view and camera roll??
    I have IOS 5.0.1 installed on both iphone(4s) and ipad(2).
    Is this a software glitch or??
    thanks

    Sounds like a damaged database fie:
    Try these in order - from best option on down...
    1. Do you have an up-to-date back up? If so, try copy the library6.iphoto file from the back up to the iPhoto Library allowing it to overwrite the damaged file.
    2. Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
    3. If neither of these work then you'll need to create and populate a new library.
    To create and populate a new *iPhoto 6* library:
    Note this will give you a working library with the same Rolls and pictures as before, however, you will lose your albums, keywords, modified versions, books, calendars etc.
    Move the iPhoto Library to the desktop
    Launch iPhoto. It will ask if you wish to create a new Library. Say Yes.
    Go into the iPhoto Library on your desktop and find the Originals folder. From the Originals folder drag the individual Roll Folders to the iPhoto Window and it will recreate them in the new library.
    When you're sure all is well you can delete the iPhoto Library on your desktop.
    In the future, in addition to your usual back up routine, you might like to make a copy of the library6.iPhoto file whenever you have made changes to the library as protection against database corruption.
    Regards
    TD

  • Game center still shows deleted games  why? and how to remove them???

    why does the game center still show removed games???
    this is slightly daft?? or is it just me???

    After you remove the game data from the game center try restarting your phone..

  • Creative Cloud still show an app as installed and up to date after app was uninstalled, therefore cant reinstall

    I previously installed Acrobat XI Pro trial. I have since purchased a subscription to Creative Cloud. I uninstalled the trial and attempted to re-install from the Creative cloud but the app still shows its installed and up to date. How do I fix this?

    RUn the cleaner tool.
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    Mylenium

  • XY Graph-Setting Y-Scale visible to False still Shows Corresponding Y scale Max and Min

    Hi Guys,
    I use XY graph to display the data with 3 Y-scales.
    When I set any Y scale Visiblity property to False,its still display the Y scale Max and Min range Lines in plot area of the  Graph and making cross line or extra parralel line with other visible scales.
    Attached the screen shot  for ref.
    And I know the cross line may be due to different Y scales range setting.But XY graph should not display the invisible Y scales and its property  as well.
    please provide your suggestions to avoid that.
    Solved!
    Go to Solution.

    The scales and the lines associated with those scales are separate properties. I have never tried it, and right now I am not at a computer, but there should be properties for setting the grid line colors. Set them to transparent.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Flash Drive not mounting, shows up in sys. prof. and USB Prober

    I have a 4Gig Flash Drive that doesn't mount. It shows up in both SYstem Profiler and USB Prober. Is there any way to "fix" it? I don't need to recover any files - I just want to be able to use it.
    It used to work, maybe a year ago. Havn't touched it since.
    The port is just fine, it's definitely the drive.
    Thanks for your time!

    it doesn't show up in disk utility. unless there is a way to force mount it, disk utility can't help.

  • TS4002 When I use my iphone to check my email, and delete unwanted email, it still shows up on my computer~ and vice versa. How do I get the doubling up to stop??

    It used to work just fine, but now whenever I receive email if I check it from my phone and delete it, it will still be on my computer. If I check it on my computer, when I get on my phone, it's still there. I'm having to go through email and delete it all, on both devices, rather than just on one.
    How can I make it so that when an email is deleted from one device, it will also be deleted from the other? I don't know what I did to make it stop doing this, and I've tried several things, on both my phone and my mac, but it's about to drive me crazy!
    Thanks for any help you can give!

    But the problem is, that it Did used to do this. It synced for a year and a half and now only in the past four months has it not synced...
    Any thoughts?

  • Update doesn't work. Tried several times but still shows old version of Mozilla and of adobe Acrobat..

    I have version 3.6.7 and History shows it has not been updated in two years. (I was using IE for a while but switched back to Mozilla a couple of weeks ago, but I can't get it to Update. It shows that the update has downloaded but it doesn't get activated. I also downloaded Adobe Acrobat update from the Mozilla plug-in page and that also did not seem to "take". What can I do?

    Try the following:
    Update Firefox by going to [http://www.getfirefox.com www.getfirefox.com]. Download the newer version of Firefox, and install it over your current Firefox install.
    Then, read [[Websites say that Firefox is outdated or incompatible even though it's the latest version]], follow all directions there.
    after doing that, download Flash 11.4 from [http://download.macromedia.com/pub/flashplayer/current/support/install_flash_player.exe http://download.macromedia.com/pub/flashplayer/current/support/install_flash_player.exe] and install it (close firefox first)

Maybe you are looking for