![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have the following SQL procedure I am running to clean up a filegroup and move all data to a single .MDF file: use <db_name print 'Move <db_name> db contents to MDF file' DBCC SHRINKFILE ('<db_name>_1_Data', EMPTYFILE) DBCC SHRINKFILE ('<db_name>_Log', EMPTYFILE) DBCC SHRINKFILE ('<db_name>_2_Data', EMPTYFILE) DBCC SHRINKFILE ('<db_name>_log2', EMPTYFILE) go Trouble is that I get the following error: Server: Msg 1105, Level 17, State 2, Line 3 Could not allocate space for object '<company_name>. Inv. Line' in database '<db_name>' because the 'Data Filegroup 1' filegroup is full. |
![]() |
| Thread Tools | |
| Display Modes | |
| |