Link to home
Start Free TrialLog in
Avatar of blberger
blberger

asked on

Moving existing Data file to different FileGroup

I currently have a database where the 1st data file is in one filegroup and the other 8 files are in a second filegroup.  I want to move the 1st file into the secondary filegroup.  Some basic directions would be appreciated.

Avatar of Ephraim Wangoya
Ephraim Wangoya
Flag of United States of America image

Easiest way to do so is to detach database, move file, then re-attach
 
Avatar of blberger
blberger

ASKER

Not physically moving the datafile. The primary datafile (.mdf) is in a different firlegroup than the other datafiles (ldf).  I need to move the primary file into the same filegroup as the others and not move the datafile from drive to drive.
ASKER CERTIFIED SOLUTION
Avatar of Raja Jegan R
Raja Jegan R
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I guess that I was just being stubborn and wnated to keep the other filegroup instead.