Backing Up And Flushing The Tranaction Log

Apr 13, 2007

Hi could yous please help.

Our IT guy has left our company so I’m doing the IT for the moment so know very little about sql server.

I have been backing up our database using enterprise manager and doing a complete backup, which I thought was the right way to do it.

We have recently had problems with lack of disk space. An external engineer said that this problem has been caused due to the fact that I am not backing up properly, as I am not backing up and flushing the transaction log. Apparently I’m just backing up the structure of the database and not the data

When I do a backup through Enterprise manager and do a complete back up, does this not back up the transaction log and flush it?

They also told me that the only way to flush the transaction log is to by a separate application like Veritas back up exec to do this.

Could you please help and explain what they mean, are they right?

Thanks

View 2 Replies


ADVERTISEMENT

Flushing The Transaction Log...

May 26, 2004

How can I empty the db transaction log in sql2k? It's up to 16gigs right now..

View 2 Replies View Related

Restore Tranaction Log

Aug 14, 2005

I am trying to restore a Transaction Log in SQL Server 2000 in Full recovery status, However I was received the following error Message:--------------------------------------------------------------------------------------------------------------------------------------Error message: Exclusive access could not be obtained because the database is in use.--------------------------------------------------------------------------------------------------------------------------------------Also I changed the UserAccess database from MULTI_USER to SINGLE_USER, but still do not work and shows the same error message.Please let me know, if you have any solution for this problem.Thanks,

View 1 Replies View Related

Flushing The Log File In Sql

Dec 6, 2005

having an issue with the log file growing expedentially to 2 gig and need to know how to force a commit of the database so the log file will flush.
 
Please any help would be greatly appreciated.  Right now I have to reboot the server to get to site.
 

View 3 Replies View Related

Flushing Cache

May 31, 1999

I am doing performance testing and I would like to be able to flush the data cache without re-starting the server. Can this be done?

View 2 Replies View Related

Differential VS Tranaction Logs

Apr 9, 2008



Hi,

Can some one let me know the differencies between different Backup models. Full, Differential and Transactional. I am more confused, when to use the Differential and Transactional log backups? How they both differ?

How the backup models depend on the database recovery model? Can i recover my database if my database recovery model is SIMPLE using a FULL backup?

I would appreciate if someone can explain it with an example and share the best practices.

Regards,
-Aazad.

View 11 Replies View Related

Tranaction Log Error- Can Someone Tell Me If This Error Was My Fault

Apr 16, 2007

Hi everyone:We received a error message "Log File to Database is Full. Backup thetransaction log to free up space."I have a Access 2000 application that calls a Stored Procedure thatinserts about 5000 records into a worktable on a SQL server 8.0database table. After the user is finished with the work table astored procedure deletes just the records that he was using in thework file (so I can't use Truncate Table). I have the work tablelinked to an Access database so I can't use a temporary table on theserver.This action of 5000 records being added and deleted to this workfilecan occur 7 or 8 times an hour. And for the last week I've beentesting the application so I have probably been doing this action 10to 20 times an hours.I do not currently use a COMMIT with the INSERT Stored Procedure orthe DELETE Stored Procedure.Although I didn't think this was a lot of records, could it be that myapplication caused this error. Is there a way to find out for sure ifmy application caused this error and if there something I can do in myapplication to keep the Transaction Log from filling up.Thank you for taking the time to read my post and any help would beappreciated.

View 3 Replies View Related

Backing Up SQL DB

Aug 15, 2006

We're trying to create a .bak file to send it to our site's admin to restore it on the
server:
1. When I try to do that get this error:http://www.radiorient.net/errors/export_sql.gif
Why is that? and how can I fix it?
2. Should we add both files of the db (.MDF, and .LDF) or only the .MDF file?
Can please someone help me with this, Thanx.

View 2 Replies View Related

Backing Up A MDF

Nov 10, 2007

 I plan on using a database file for my site, how would I back it up if I were to make changes to my site? 

View 5 Replies View Related

BACKING UP SQL 7.0

Sep 2, 1999

I just got SQL 7.0 and was curious how other environments run their backup. I know ArcServe has a product that backs up open SQL databases and not sure how reliable this product was. Any thoughts would be appreciated .. thanks.

View 3 Replies View Related

Backing Up MS SQL?

Jul 20, 2005

HiI'm hoping that some could point me in the right direction for "bestpractice" in:1) securely backing up a complete sql7 and 2000 server containing manydatabases.2) backing up an individual database3) Securing the transaction on the hour as a mile stone to return to in theevent of error or system failure.ThanksMark

View 5 Replies View Related

Backing Up

May 20, 2007

I always do a quick backup of my project using Developer's Backup before proceeding.

View 1 Replies View Related

Backing Up Sql Server

Oct 4, 2007

Hey, please forgive me if my infomation source was incorrect. But a friend of mine mentioned to me he had hurd of a program, or code that will make an "install script" of your database. Basically it`ll back up all the tables on your server and if the worst case senario happens then you can run the file like an install script. Is this true? It sounds invalueable! If it isnt true, can someone tell me if it is possible to use code to create a "install script" of your own database? I am using "Microsoft SQL Server".Thanks in advance John 

View 3 Replies View Related

Please Help....backing Up Trn Logs

Aug 26, 2002

Scenario:

I have August22 full backup and August22 and August23 transactions log backups . I want to get the August23 and August23 full backup. So I performed a restore backup with August22 full backup and all the August22 trn backups. Then I backed up giving it August23 name and repeated the process with the August23 trn backups. But, I get an error saying that the transactions haven't been rolled foward far enough. But, I am not missing any trns! I will really be grateful if anyone would help.
thanks.

View 1 Replies View Related

Backing Up DTS Packages

Jul 13, 2000

Does anyone know how we can backup DTS packages?

View 2 Replies View Related

Backing Up On A Different Machine

Aug 7, 2000

Hi,

i want to take a backup a database which is on a different machine to my machine.Iam trying to give unc naming conventions i.e backup to //servername/sharename/file.bak but its not working.iam getting an error saying device error or device offline-access denied.

Anyone could tell me how to do it step by step plz.


Thanks.

View 2 Replies View Related

Backing Up A Database In SQL 7.0

Mar 3, 2000

When backing up a database in MS SQL 7.0, there is a window that appears in the destination section of the backup window. In this window is where the filename appears that the backup will proceed to and to the right of this window are "add", "remove" and "contents" buttons.

If there are multiple names in this window, will the entire backup go to both files or does it split the backup between the two filenames.

View 1 Replies View Related

Backing Up DTS Packages

Mar 12, 2001

TO backup a DTS package, does backing up MSDB take care of this or do the files need to be individually backed up?

View 1 Replies View Related

Backing Up Tables

Mar 10, 2004

I use SQL Server 2000 and I create scripts on a daily basis to do the following

1. Rename a table
2. Create table with original name and add new field
3. Copy data from renamed table to new table
4. Build indexes
-----------------------------------------
execute sp_rename ORIGINAL, OLD
GO

CREATE TABLE [dbo].[ORIGINAL] (
[A] [varchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
[B] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
[C] [int] NOT NULL ,
[Notes] [text] COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

INSERT INTO ORIGINAL (A, B, NOTES)
SELECT A, B, NOTES
FROM OLD

CREATE CLUSTERED INDEX [ORIGINAL_A_B] ON [dbo].[ORIGINAL]([A], [B] DESC ) WITH FILLFACTOR = 90 ON [PRIMARY]
GO
-----------------------------------------

ON A TABLE WITH 100,000 RECORDS THIS KIND OF SCRIPT TAKES A LONG TIME TO DO THE INSERT/SELECT PART

I WOULD USE ALTER/ADD TO UPDATE THE TABLES, BUT MY SUPERIOR INSISTS THAT NOT HAVING TEXT FIELDS AS THE LAST FIELD IN THE TABLE WILL CAUSE QUERKY PROBLEMS WITH HIS SQL STATEMENTS
DOES ANYONE HAVE ANY KNOWLEDGE THAT THIS COULD BE TRUE?

IF SO,
DOES ANYONE HAVE ANY IDEAS FOR DOING THIS SAME PROCESS TO ADD A NEW FIELD (C) BEFORE THE FINAL FIELD (NOTES - TEXT FIELD), AND BACKUP THE TABLE BUT WITHOUT IT TAKING SUCH A LONG TIME ON THE INSERT/SELECT PART?

Forgive me if I'm asking a lot, but I'm lost and these scripts take way too long for what seems like such a simple task.

Thanks,
Mitch

View 2 Replies View Related

Backing Up Database

May 6, 2004

Here is the situation, I have a web application (asp.net/vb.net) with ms sql 2000 as the database. I have two database server. I would like to backup database 1 with database 2. I would like to do it at intervals and through code. If anyone can give me some ideas on how to do this or any research material, please do.

Thanks

View 2 Replies View Related

Backing Up Database

Feb 20, 2007

Sorry this is so trivial, but I don't work with SQL Server too much. I just want to back up a table in one of my databases. I'm using SQL Server 2005, the management studio. Can someone walk me through how to back up a table? Thanks!

View 1 Replies View Related

Backing Up SQL Server

Apr 19, 2007

Hi,
I've recently created a maintenance plan, which backs up my database and transaction log. However I also have a Veritas (Backup Exec for Windows Servers) tape backup which runs at night and backs up my files. It is setup to backup the whole of my MSSQL DATA and BACKUP folders.

Today I went to do a test restore, and found that the tape backup contained nothing in the MSSQL DATA folder, but everything that was in the BACKUP folder. Is this because everything in the DATA folder is in an open state? On checking back, the tape backup has never held anything in the DATA folder. Should I be worried by this, or is it what you would expect, and is the SQL backup sufficient?

Thanks for any advice

Colin

View 2 Replies View Related

Backing Up From .bak File

Jun 25, 2007

I got a .bak file from my friend
I want to restore the data base (presently I don’t have any database in my system).

But while I try to restore it
I am getting an error


“
System.Data.SqlClient.SqlError: Directory lookup for the file "D:Microsoft SQL Server 2005mydatabase.mdf" failed with the operating system error 2(The system cannot find the file specified.). (Microsoft.SqlServer.Smo)

�

I have installed Microsoft sql server in a different directory
Not where he is installed

I can successfully restore the back up files of data base on my own system
But not the backup files created from others systems

View 2 Replies View Related

Backing Up Data

Sep 4, 2007

i have an existing database that is very large. i want to split it into different file groups to make the back up faster. how do you split it? thanks

View 5 Replies View Related

Problems Backing Up SQL DB.

Jun 1, 2007

Every time i try to back up a specific DB i get an error saying it cannot backup because the full text catalog is not permitted because itis not online. It does not matter if i try to backup the db throughSQL of my Backup software. here is the sql log.LogJob History (DB File level Backup.Subplan_1)Step ID1ServerServer NameJob NameDB File level Backup.Subplan_1Step NameSubplan_1Duration00:00:01Sql Severity0Sql Message ID0Operator EmailedOperator Net sentOperator PagedRetries Attempted0MessageExecuted as user: DomainUSer. ...ecute Package Utility Version9.00.3042.00 for 32-bit Copyright (C) Microsoft Corp 1984-2005. Allrights reserved. Started: 7:07:43 AM Progress: 2007-06-0107:07:44.14 Source: {B6285A6A-0066-416F-AD9F-F31ED5A68F14}Executing query "DECLARE @Guid UNIQUEIDENTIFIER EXECUTEmsdb..sp".: 100% complete End Progress Error: 2007-06-0107:07:44.49 Code: 0xC002F210 Source: Back Up Database (Full)Execute SQL Task Description: Executing the query "BACKUP DATABASE[DBName] FILEGROUP = N'PRIMARY' TO DISK = N'E:Program FilesMicrosoft SQL ServerMSSQL.1MSSQLBackupDBName_200706010707.ba k'WITH NOFORMAT, NOINIT, NAME = N'DBName_backup_20070601070744', SKIP,REWIND, NOUNLOAD, STATS = 10 " failed with the following error: "Thebackup of full-text catalog 'ftcat_documentindex' is not permittedbecause it is not online. Check errorlog file for the reason that full-text catalog became offline and . The step failed.

View 1 Replies View Related

Backing Up Through VS2005

Nov 19, 2006

Hi, not sure I have should ask this in here or in the VS forums - but here goes anyway!

My vb app is written using VS2005 with an SQL database. I'm now distributing this to users to use with SQL Express.

It's hard enough explaining to them how to attach the database without going into the backup routines etc!

So what I'd like to do is to have a "backup" button in my app, that backsup the database, trancates the log files & then shrinks the files.

Is this possible?

View 14 Replies View Related

DB Engine :: Backing Up MDF And LDF

Jul 22, 2015

I'm having an ongoing fallout with the Operations team where I work about database backup strategy.  They use vSphere (VM ware) to backup all the disks on the servers and included in this are the SQL backups.  Now I don't really trust this because whenever I ask for a restore, which is very infrequently, they give me an mdf/ldf pair.  To my mind this shows they are just backing up files and although these files can be re-attached this is not safe, as they were open when the backup was taken.   What I would like to do is use native (or RedGate) backup to create a full backup and have the vSphere pick up the .BAK files. 

View 14 Replies View Related

Backing Up DB && Its Permissions

Sep 12, 2007

HI All,

I am currently in a situation where I have been fed to the wolves to say the least.

My task is to take the current SQL server 05 we have running on a drive array partioned as C & D and rebuild it.

I need to have the current database backed up, as well as the unique permissions that are currently present on the database.

I then have to remove the hard drives from the RAID array, and replace them with Brand new ones. The OS will then have to be reinstalled, followed by the nessary updates and finally with SQL server.

I then have to import the database back to the new server build w/ the data and the permissions all intact.

Anyone have any idea of how I can go about doing this?


Steve

View 6 Replies View Related

Backing Up Stored Procedures

Mar 7, 2007

Is there an easy simple way to backup all my personal Stored Procedures.
In the stored procedures collection, my stored procedures start with "DEF".
I would like to have the stored procedures places as text files in a personal backup folder.
Is this possible?

View 7 Replies View Related

Copying/ Backing Up A Database

Apr 24, 2005

Hi. im shortly going to have to submit my project for uni which ive created using sql server. How can i copy everything that ive made so i can submit everything and it can be replicated if necessary. Do i use the backup database task in enterprise manager or do i have to do that and export data or..?
ive used tables and stored procedures and a diagram btw.
thanks for any advice

View 1 Replies View Related

Backing Up Databases 2 ---HELP HELP!! URGENT!!

Nov 9, 2000

I used sp_detach_db to back up the database temporarily. I used xp_cmdshell
to stop SQLServerAgent, but when I restarted, I was unable to. Then, I tried
reattaching the Database running sp_attach_db.

!!!HELP HELP!!!
I AM GETTING THE FOLLOWING ERROR:

Server: Msg 5105, Level 16, State 4, Line 1
Device activation error. The physical file name
'Mssql7dataTestDB.mdf' may be incorrect.

I KNOW THAT THE NAME AND THE PATH ARE CORRECT.

Really Appreciate the Help
Shelly

View 2 Replies View Related

Backing Up All Target Servers

Aug 7, 2000

Has anyone created a script that, when run against the Master database, will back up all databases on target servers?

Thanks

View 1 Replies View Related

Backing Up And Restoring Database

Oct 19, 2000

Hi, I am in a production database server. Data has been added and deleted via the web. So there is alot of traffice in and out of the database. How can I make a backup plan to make sure I am not lossing any input or deleted data . I am familiar with backing up a database in regular intervals, but I amnot sure if this is the best way in this senario.

How can I take advantage of the transaction log in restoring the database.

Thanks

Ahmed

View 2 Replies View Related







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