alter
@Dbname nvarchar(1000) BEGIN DECLARE SET exec END but i got error " Cannot perform a shrinkfile operation inside a user transaction. Terminate the transaction and reissue the statement." how possible?
As
procedure reduceDatabaseSizealter
@Dbname nvarchar(1000) BEGIN DECLARE SET exec END but i got error " Cannot perform a shrinkfile operation inside a user transaction. Terminate the transaction and reissue the statement." how possible?
As
procedure reduceDatabaseSizeKnow the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Guest UserPosted Apr 4, 2011, 11:16 AM
backup log My_Database with truncate_only
dbcc shrinkfile(My_Database_log, 1)
Mahesh ChandPosted Apr 4, 2011, 3:13 PM