TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Pavol
NA
23
9k
Delete .ndf file
Nov 16 2016 5:00 PM
Hi
I used partitioning on my database. I created filegroup and four files in this filegroup. In this filegroup i dont have data and i need delete .ndf files from this filegroup. Files has 1MB size.
i used this command:
ALTER DATABASE MyDatabase REMOVE FILE MyFile
i got error :
Error 5042: The file 'MyFile' cannot be removed because it is not empty.
I tried
SHRINKFILE('logical_file_name', EMPTYFILE) but i got error:
There is insufficient space in the filegroup to complete the emptyfile operation.
Do you have any idea how i solve this problem. Thanks
Reply
Answers (
5
)
How to restrict the auto log in SQL Transaction?
Read and write data from cache.