English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

My .ldf file is over 100 GIGABYTES now. I'd like to delete it, shrink it, whatever so it doesn't take so much space on my hard drive. I get an error when I try to delete it that says "The Primary Data or Log File cannot be removed from a database."

2007-03-22 05:33:31 · 1 answers · asked by Scotty Doesnt Know 7 in Computers & Internet Software

1 answers

Truncating the transaction log:

BACKUP LOG { database_name | @database_name_var }
{
[ WITH
{ NO_LOG | TRUNCATE_ONLY } ]
}

2007-03-22 05:46:17 · answer #1 · answered by Serge M 6 · 0 0

fedest.com, questions and answers