Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Merge 2 data file into 1 data file.

Status
Not open for further replies.

kmsam2

Programmer
May 21, 2003
29
MY
If I have a database consist of 2 data file and 1 log file, when I move to a new server and I plan to merge 2 data files into 1 single file only. Can this be done?

Sam.
 
yes it can. Look up DBCC SHRINKFILE with EMTYFILE in BOL. But why would you want to? What is in your second data file? Multiple datafiles usually helps performance. Excpecialy if you put them on different Arrays.


- Paul
10qkyfp.gif

- If at first you don't succeed, find out if the loser gets anything.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top