Quantcast
Viewing all articles
Browse latest Browse all 12366

Empty and Remove a File from a SQL Database

 

 

Alter Database AdventureWorksDW2014 set multi_user with rollback immediate

USE [AdventureWorksDW2014]
GO
DBCC SHRINKFILE (N'fileneu' , EMPTYFILE)
GO


USE [AdventureWorksDW2014]
GO
ALTER DATABASE [AdventureWorksDW2014]  REMOVE FILE [fileneu]
GO

Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 12366

Trending Articles