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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Guest UserRank #1,422 · 1.2K reputationPosted Apr 4, 2011, 7:16 AM EDT
backup log My_Database with truncate_only
dbcc shrinkfile(My_Database_log, 1)
Mahesh ChandRank #1 · 393.3K reputationPosted Apr 4, 2011, 11:13 AM EDT