Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 mdf to ndf

Author  Topic 

neerav.saini
Starting Member

9 Posts

Posted - 2009-06-26 : 06:12:53
hi Gurus,
I have database D1(5Gb) with one mdf and one log file(By default).
How can i store data from mdf to ndf file(after creation) in database D1?
It will be great help if given with example

Any help is appreciated


Thanks,
Neerav

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-06-26 : 06:17:53
Are you using SQL Server 2005 or later?
Then you can take advantage of the new

ALTER TABLE ... MOVE TO...




E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page
   

- Advertisement -