473,387 Members | 1,721 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Transaction Logs

JA
Hi, I know just about nothing about SQL Server. I am getting this error:

The log file for database 'my_database' is full. Back up the transaction log
for the database to free up some log space.

I can't access the transaction logs to back them up. I am told that my ISP's
tech support should have it set up to shrink those logs automatically every
so often. Is that true?

Why are they needed? Up till Monday, the logs are just of our getting SQL
Server set up, so couldn't the logs just be deleted? Most of my site can't
run with this problem.

I'd appreciate any enlightenment anyone can give me!

Thanks, Jill
Mar 11 '07 #1
1 2479
"JA" <ja*****@kc.rr.comwrote in message
news:45***********************@roadrunner.com...
Hi, I know just about nothing about SQL Server. I am getting this error:

The log file for database 'my_database' is full. Back up the transaction
log for the database to free up some log space.

I can't access the transaction logs to back them up. I am told that my
ISP's tech support should have it set up to shrink those logs
automatically every so often. Is that true?
I have no idea what your ISP's tech support should do.

BUT... what access DO you have?

Sounds like you're in a bit of trouble.

Do you have access to run ad-hoc queries? (Query Analyzer, OSQL, etc.)

If so, try

BACKUP LOG <dbnameto DISK='D:\db_trn_2007031111.LOG'

(that will back up the log for that database to a file called
'D:\db_trn_2007031111.LOG'

You can name it something else and put it any SQL server has access to. If
the drive is NOT local, try a UNC share.)

If for some reason that does not back up your logs (you don't have write
permissions, etc.)

You can try,

BACKUP LOG <dbnamewith truncate_only

That will truncate the transaction log to the last pending transaction.

HOWEVER, it will completely invalidate your backup chain and you should do
a full backup as soon as you can afterwards.

If you need more help tonight, email me at the address below I'll be awake
for a bit.

>
Why are they needed? Up till Monday, the logs are just of our getting SQL
Server set up, so couldn't the logs just be deleted? Most of my site can't
run with this problem.

I'd appreciate any enlightenment anyone can give me!

Thanks, Jill

--
Greg Moore
SQL Server DBA Consulting
Email: sql (at) greenms.com http://www.greenms.com
Mar 11 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: enigma | last post by:
Just wondering if you could help me on this one. I'm not sure if my transaction logs are behaving oddly or what. I've successfuly managed to shrink my transaction logs from 7GB down to 1MB and now...
3
by: Thiko | last post by:
Hi I take one nightly full database backup at 02:00 and backup the transaction log to one backup set every 15mins. The commands to do this are as follows and are set up to run as database...
0
by: xo55ox | last post by:
Hi, I have been trying to set up an automated restore process from prod to backup server. First, I schedule the full database backup nightly, transfer the backup file and restore it to the...
3
by: Andrew S. | last post by:
I recently performed an SQL server 2000 installation. Other than placing the program files on C: and data on D:, I saw no option to install transaction logs in an alternate location. What is...
7
by: Abdul-Wahid Paterson | last post by:
Hi, I have had a site working for the last 2 years and have had no problems until at the weekend I replace my database server with a newer one. The database migration went like a dream and I had...
2
by: francois1 | last post by:
I am running a website with a SQL Server database attached. My transaction logs are full and my hosting co. won't allocate more disk space for me. I need to delete my database transaction logs...
3
by: TG | last post by:
Coming from a (mostly) Oracle shop, I am unclear how SS transaction logs work as far as up to point of failure recovery goes. I have the few MSSQL databases I look after in full recovery mode,...
3
by: Laurence | last post by:
Hi folks, How to remove the transaction logs which are out of date in HADR environment? DB2 command PRUNE, it can only run on primary database but cannot run on standby database. Because the...
4
by: Brian D | last post by:
In MS SQL 2005 when you do a Full Backup does it also backup and truncate the transaction logs or do I need to back the transaction logs up separately? Thanks. Brian
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.