Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Old Forums
 CLOSED - General SQL Server
 transaction Log

Author  Topic 

albertkohl
Aged Yak Warrior

740 Posts

Posted - 2005-09-18 : 20:51:07
okay, so i have a huge database (about 119 million names 79 fields deep) and i want to index a bunch of fields. after importing, and indexing a few fields, my dtabase.log file is 250 gigs OUCH!!! is there a way i can clear that out? i dont realy need to back it up unless it's nessessary. any help would be great...

scullee
Posting Yak Master

103 Posts

Posted - 2005-09-18 : 21:03:47
BACKUP LOG { database_name }
{
WITH TRUNCATE_ONLY
}

Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2005-09-19 : 02:15:09
You'll probably want to SHRINK it after you've done the "Truncate Only" backup

Kristen
Go to Top of Page

albertkohl
Aged Yak Warrior

740 Posts

Posted - 2005-09-19 : 13:57:52
when i try that command i get:

[Microsoft][ODBC SQL Server Driver]Syntax error or access violation

i'm the only one connected to the server, so it couldnt be anyone else.
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2005-09-19 : 13:59:14
"when i try that command"

What's the exact syntax you are using?

Kristen
Go to Top of Page

albertkohl
Aged Yak Warrior

740 Posts

Posted - 2005-09-19 : 17:04:32
BACKUP LOG { residential }
{
WITH TRUNCATE_ONLY
}


[Microsoft][ODBC SQL Server Driver]Syntax error or access violation
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2005-09-19 : 17:06:26
BACKUP LOG residential WITH TRUNCATE_ONLY


Tara
Go to Top of Page

albertkohl
Aged Yak Warrior

740 Posts

Posted - 2005-09-19 : 17:22:45
Perfect, thank you
Go to Top of Page
   

- Advertisement -