Transaction Log Full Due To Poorly Configured SQL Database

Dec 23, 2005

Good evening all,

I am new to Microsoft SQL and have been dumped right into the deep end with an anchor around my ankles.

The problem I am experiencing is about 6 months back a guy setup a Microsoft SQL server at my client. He then took his bags and left. Then a developer developed an application which uses a database on this sql server. Everything worked well for around 4 months.

Yesterday IBM Director notified me that I am running dangerously low on disk space on the server. By the time I came in to work this morning I had 12mb free disk space. The evil thing here is the transaction log for the downtime database. It has grown to over 60gb, all because the correct measures were not implemented to prevent this.

The problem that is occuring is no one can do anything on the database now due to the lack of free space. I have tried reading the sql books online but due to my lack of sql experience and knowledge I am stuck.

Can someone please help me? What I would like to do is pull my transaction log down to an acceptable size.

I was thinking of creating a new database and then importing all the data from the current database and then just deleting the current database however am slightly concerned that this may result in some data being lost.

Thanks in advance,

Richard

View 9 Replies


ADVERTISEMENT

Moving A Poorly Designed Database To SQL

Sep 27, 2001

I have a Access database which has a address field with multiple data sets in it. I am new to writing code and am having trouble finding a example which will help me split these values out into three seperate fields.

Notice how there is no good order in how they are placed.... Some entry's have commas and some don't. Some have periods and some don't.
EX:
[BILL_ADDR3]
AMHERST, WI. 54406
ASHLAND, WI 54806
ASKOV MN 55704

I then need to convert the state to a state code ie:

2 AK
3 AL
4 AR
5 CA
6 CO
7 CT
8 DC
9 DE
10 FL
11 GA
12 HI
13 IA
14 ID
15 IL
16 IN
17 KS
18 KY


Any good sources of information would be greatly appreciated..... Thank You

View 1 Replies View Related

Working With A Poorly Documented SQL Database.

Feb 6, 2008

One of the primary parts of my job is working with the SQL database of our Enterprise ERP software. One of my primary responsibilities is writing reports based on it's data and since it is not well documented and this is one of my biggest challenges. To top it all off, it's hard to even use their reports to learn the links between tables as the reports run completely in Visual Foxpro.

Is there reasonably priced software that will analyze the database for me and make it easier for me to figure out the relationships between certain tables and such?

TIA,

Dave

View 1 Replies View Related

The Log File For Database 'Home_alone' Is Full. Back Up The Transaction Log For The Database To Free Up Some Log Space.

Feb 4, 2008



Hi all

Iam working in Prodcution ENV,Please help how make space


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

View 10 Replies View Related

The Transaction Log For Database Is Full. Help!

Nov 17, 2006

System.Data.SqlClient.SqlException:
The transaction log for database 'mydatabase' is full. To find out why space
in the log cannot be reused, see the log_reuse_wait_desc column in
sys.databases I have my website on a web hotel and I only have limited access to my database. How can I solve this for now, and the future?? 

View 4 Replies View Related

The Transaction Log For Database 'tempdb' Is Full.

Oct 16, 2007

SQL2005 SP2+Cum.Patch Rrevision 4 (9.0.3175)

I always get this message, when i want to run a stonger query or a transaction that takes a longer time:

"The transaction log for database 'tempdb' is full. To find out why space in the log cannot be reused, see the log_reuse_wait_desc column in sys.databases"

I checked the log_reuse_wait_desc column: LOG_BACKUP
I ran tr log backup...nothing...
I tried to set to simple reco mode the db...this helped... temporaly...i got again below message.
( i wouldn't like to set to simple mode the db because the size of db is 160GB now....so i don't want to eun a fullbackup)

TempDB size is 50MB now and it can grow until 7GB.
The trqansaction log size is 14GB and there are 50GB free space, so it can grow.

This symptom occurs since i installed SP2 and the CP Rev.4.0

What is the real problem ?

View 4 Replies View Related

SQL 2012 :: Transaction Log For Database Xxxx Is Full Due To REPLICATION

Dec 4, 2014

Getting below error most of the times .

"Server was unable to process request. ---> The transaction log for database 'xxxx' is full due to 'REPLICATION'."

I am doing below steps to clear the log everytime.

1.EXEC sp_repldone @xactid = NULL, @xact_segno = NULL, @numtrans = 0,@time = 0, @reset = 1

2.checkpoint

View 8 Replies View Related

Transaction Replication Failed After Restoring Full Back Up Of Database In NORECOVERY

Mar 4, 2011

We had a siutation last night in our production environment that forced us to revert back to an earlier version of the database (before a major code rollout that failed). After restoring the days full backup (with NORECOVERY), and then restoring a DIFF backup (FULL RECOVERY and had checked Preserve Replication Settings)...the transaction replication failed.

Message #1
The replication agent has been successfully started. See the Replication Monitor for more information.

Message #2
2011-03-04 15:07:17.566 Copyright (c) 2008 Microsoft Corporation
2011-03-04 15:07:17.566 Microsoft SQL Server Replication Agent: logread
2011-03-04 15:07:17.566
2011-03-04 15:07:17.566 The timestamps prepended to the output lines are expressed in terms of UTC time.
2011-03-04 15:07:17.566 User-specified agent parameter values:

[code]....

I've tried reinitializing the publication/subscription and while that took brand new snapshots and copied it over to the replicated data server, it did not fix the problem.I read from a different post that I could try running "sp_replrestart" but that ran for about a half an hour and didn't appear to do anything but fill up our log files...did I not wait long enough?

The only thing I know to do at this point is to drop the publication on the production server and rebuild it completely (and with all the tables we're replicating that would take quite a bit of time.

View 9 Replies View Related

The Database File Is Larger Than The Configured Maximum Database Size.

Mar 20, 2007

I'm getting this error while trying to insert records into a SQL Server Compact Edition database. I have pasted my connection string that was used when creating the database as well as for accessing that same database from my Windows application.

Thanks for any help any of you can give!

Data Source=OnTheGo.sdf;Encrypt Database=True;Password=<password>;Max Database Size=4091

View 3 Replies View Related

Database File Is Larger Than The Configured Max Database Size.

Feb 18, 2008

Hello,

I am developing a smart device application with Visual Studio .Net 2005 and SQL Server Compact Edition database. And also using merge replication to synchronize the data from the mobile device to the SQL Server.

My database size is around 350MB. So when I am trying to synchronize this is the error message that I get.
" The database file is larger than the configured maximum database size. The setting takes effect on the first concurrent database connection only.[Required Max Database size ( in MB; 0 if unknown)=129].

I tried changing the Max database size in the connection string and my connection string looks as follows and still did not have any luck.

connstr= "Data Source=Storage CardItems.sdf;Max Database Size=500;"

Any help regarding this would be appreciated.

Thank you
.

View 6 Replies View Related

SQL Security :: Full Backup Needed After Restoration Of Database Before Transaction Log Backup

Jul 15, 2015

We take a full backup in the early morning and hourly transaction log back during the working hours for one database in the production server. The application team made certain changes to the design of the said database in their development server. The backup from the development server was restored to the production server during working hours. After the restoration should we take a full backup before next transactional logbackup? Would the transactional log backup with out a full backup after the restoration of a database be valid?

View 5 Replies View Related

'This Database Has Not Been Configured For Mirroring' But It Has

Jun 4, 2007

Ok i am very new to the word of mirroring in sql 2005, i am trying to get it to work, i have 3 servers

my witness server

mirror server and then of course the principal server, all are completely different servers.



I have a copy of the db on the princapal and the mirror server (excatly the same, snapshot)

right click on the princapal db and go to properties choose mirroring run through the' configure security' wiarzd

it resolves all my other DB server as it should. (using the same sql authentication also tried windows intergrated)



when i start the mirror i get unable to start

This database has not been configured for mirroring



what am i not doing???
how do i configure this damn thing?



thanks



Brad

View 2 Replies View Related

Connecting To SQL Via ODBC : How To Change The Default Database Configured With DSN

Apr 25, 2007

Hello All,
Does anybody know how to achive that?
<add name="ConnectionString" connectionString="Dsn=dsn_name;uid=user;pwd=password" providerName="System.Data.Odbc" />
I have got this created by the wizard for my sqlDataSource. I am able to get data from tables in the default database specified with the DSN.
But I want to go to other database than the default.
Thanks a lot in advamce for your help!
Kazu

View 3 Replies View Related

SQL 2012 :: How To Check Errors When Database Is Configured In AlwaysOn

Dec 15, 2014

how to check the errors when a database is configured in Always on in sql 2012?

View 1 Replies View Related

Mirroring :: Can Database Mirror Configured On Single Stand Alone Installation?

Jul 15, 2015

I want my database to be mirrored . is it possible to mirror it on the same machine.

I have tried to create a named instance but while trying to configure its not visible.?

Am using SQL SERVER 2008

View 6 Replies View Related

Increase Data File Size Of Database Which Is Configured For AlwaysOn?

Jun 7, 2015

Need to confirm if we can add space(increase data file size) for the database which is configured for always on similar to that of mirroring or we need to follow any different procedure.

I have a requirement wherein the datafiles on both the primary and secondary replica got full, if i add space to the primary database will it automatically get added to the secondary replica or not?

View 5 Replies View Related

The SQL Server Service Broker Or Database Mirroring Transport Is Disabled Or Not Configured

Jul 13, 2007

Hi,



I received an alert 'The SQL Server Service Broker or Database Mirroring transport is disabled or not configured'



How can I check the status of the two? and if they are disabled how do I enable them?

View 6 Replies View Related

Poorly Chosen Query Plan

Oct 12, 2000

I'm running the same query on two computers but getting a different query plan. On one of the servers, the query returns in 10 seconds, on the other server it takes over a minute. What the heck!

1. same hardware configuration on both computers
2. same user databases on both computers
3. same NT setup on both computers
4. same software installed on both computers

I can only imagine that MSSQL7 was setup differently and the query optimizer is making a stupid choice. I've compared numerous SQL server options and they are both the same.

1. sp_configure (same on both computers)
2. properties sheet on each server from enterprise manager (same on both computers)


any ideas???

View 1 Replies View Related

Trouble With Query For Poorly Normalized Db

Aug 21, 2007

I'm working with a database that is poorly normalized and am doing my best to increase the speed of our queries (changing the database itself is not an option right now). Any help with the following situation would be very much appreciated.

There are two tables involved, described below.

DataTable:




Code Snippet

CodeA char(4),
CodeB char(4),
CodeC char(2),
ColA float,
ColB float,
ColC float,
...
ColZ float

NameTable:




Code Snippet

Abbr char(2),
FullName varchar(50)

In the DataTable, the columns named ColA, ColB, ColC, etc., are described in the NameTable where Abbr would be A, B, C, etc., and FullName would be a "nice" text version describing what's stored in that column. For instance, a record in the NameTable might include Abbr = 'A' and FullName = 'Computer Science', and that means that ColA in the DataTable refers to 'ComputerScience'.

The table I'm trying to optimize the creation of in our ASP.NET application needs to have column headings that could be retrieved like this:
SELECT DISTINCT CodeB, CodeC FROM DataTable WHERE CodeA = @CodeA
(Note that CodeC is really just a different representation of CodeB--think 4-digit year vs. 2-digit year--for any given CodeA.)

The row headings for the table could be retrieved like this:
SELECT FullName FROM NameTable

The cells of the table at any given intersection of a row heading and a column heading can be retrieved like this:
SELECT Col? FROM DataTable WHERE CodeA = @CodeA AND CodeB = @CodeB (this selects a single value)
Where the ? of Col? is determined by the Abbr version of FullName shown in the row heading, and @CodeB is determined by CodeB from the column heading.

Right now this table is generated using a lot of loops in the code of the page that require it to query the database for nearly every cell in the table. Even with this poor database design, there has to be a better way than that. I'm hoping there is a way to create a stored procedure that uses temporary tables and joins, or views, or something like that to create the table on the SQL Server and just send the data to the ASP.NET page in a form that can be directly databound to a GridView.

Thanks in advance for any help!

-Mathminded

View 1 Replies View Related

Transaction Log Is FULL

Jun 27, 2007

How can I clear some logs in the transaction log?
 I also found some solutions that must run DBCC. How to run DBCC in SQL Server 2000?
 Thank you.

View 1 Replies View Related

Full Transaction Log

Nov 26, 2000

I have a transaction log which is 1 Gb and only has about 40 Mb free. When I run DBCC loginfo I find the first active log dates back to the middle of August. Does any one have any suggestions on the best way to approach this situation. How can I query the transaction log to find out what the old transactions are? I was going to use the detach database, rename log, attach database to shrink the log but don;t want to do this incase there is active data in the log. We are doing hourly log dunps.
Thanks
Grant

View 1 Replies View Related

Transaction Log Is Full

Jul 18, 1999

Hi all
I found that my transaction log is beig filled up and I tried to truncate it from DB properties window
and I failed.
I want to know how to truncate it and how to prevent it from growing up untill it's filled
Thanks
Mohamed

View 3 Replies View Related

Transaction Log Full

Mar 14, 2002

Our transaction log filled up the hard drive on the server and we are looking for a quick and easy way to delete it. Any ideas? We can't easily back it up because it is over 10500 meg in size.

View 4 Replies View Related

Transaction Log Full !!!!!!!!!!!!!!

May 30, 2001

Hi,

I need help fast. I have a SQL Server 6.5 SP2 database that is 5000 MB and the transaction log is 1000 MB the log is 98 % full but will not truncate. I have tried all the truncate commands (Truncate only, no_log, DBCC) but it will only trucate the log like 10 MB.
Dose anyone know how to truncate this log??

Any help will be appreciated.

Thanks in advance for you help.

View 1 Replies View Related

Transaction Log Full

Mar 14, 2000

I have a problem with the transaction log of a database. when i truncate it and check the properties if says there are 0 MB available even though it is allocated 300 MB. this seems to be causing alot of problems.
Any idea why the log will not truncate??

regards

ML

View 1 Replies View Related

Transaction Log Full

Aug 1, 2002

I am getting an error when I try to DTS data to a database that
the transaction log is full.
I do: backup transaction db_name with truncate_only,
but I still get the error.
Any ideas on how to resolve this are appreciated.
Kellie

View 1 Replies View Related

Transaction Log Full

Nov 3, 2005

How do i empty transaction log? create another file and delete the other? or use dbcc shrinkfile or dbcc shrinkdatabase, w/c both im confused too.

View 2 Replies View Related

Transaction Log Full

Jul 27, 2004

Hi there,

I'm still fairly new to SQL server and I've just ran into a problem when dropping some tables from my DB as my transaction log has become full. I looked at books online and it basically said to backup the log so it will also truncate the log. However I've ran out of disk space on my data drive so can't take a backup.

Is there a way to just truncate the active log to shrink the size?

Hope you can help??

Thanks

S

View 4 Replies View Related

Transaction Log Full

Jan 30, 2004

Today, one of our backups failed due to the transaction log being full. I expanded the transaction log and then the backup completed normally. For a short term resolution, I increased the maximum allowed size on our transaction log files.

We are doing a database backup only as follows:
backup database xxxxx to xxxx_data with init

I did find a note stating that the transaction log will eventually become full if doing a transaction log backup only. We do not generate a lot of transactions so I had not seen a need to backup the log during the day. The full database backup is done daily.

My question is, in order to permanently resolve this error do I have to:
- take a transaction log backup as well. Should I take it take right after the full database backup or at some later point.
- do I have to schedule/run the shrink database command.

View 5 Replies View Related

Transaction Is Full???

Feb 19, 2004

iHi everyone
I have a big transaction log took over all the disk space, I know I can backup the log to free the space but my backup drive is on the same drive. Is there any other way to clean the Transaction log without backing up?

Thanks so much!!!!!!!!!!!!!

View 2 Replies View Related

Transaction Log Is Full

Aug 15, 2007

I was trying to create a table on a Database and it gave me this message:

'tblSuggestion' table - Unable to create table. The transaction log for 'Database' is full. To find out why space in the log cannot be reused, see the log_reuse_wait_desc column in sys.databases

And I don't see the log_reuse_wait_desc column anywhere.

Any ideas?

dave

View 3 Replies View Related

Transaction Log Is Full

Oct 23, 2007

Hi,

At the start, transaction log size is 1MB. at the middle of the dts it reached to nearly 2 GB. I encountered this error in DTS:

OnError,,,CallerType, CallerChannel, Dealer, DODealer, HotlineType, Model, Reg'l Signal Code, Account, Contact,,,10/22/2007 10:55:43 AM,10/22/2007 10:55:43 AM,-1071636471,0x,SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E14.
An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80040E14 Description: "The transaction log for database 'DB1' is full. To find out why space in the log cannot be reused, see the log_reuse_wait_desc column in sys.databases".

I visited the sys.database's log_reuse_wait_desc and it is set to checkpoint.

The transaction log keeps getting full in the middle of the dts, not enough to do the 1 round execution of the dts. What to do with this one? Anything that i need to add in my dts to truncate the logs?

cherriesh

View 11 Replies View Related

Transaction Log Is Full

Oct 22, 2007

hi,

if my transaction log is full, do i need to execute only this command to truncate old logs?


DBCC SHRINKFILE(<dbname>, 1)

BACKUP LOG <dbname> WITH TRUNCATE_ONLY

DBCC SHRINKFILE(<dbname>, 1)

Should I use the same command as a daily maintenance to my transaction log?

cherriesh

View 14 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved