What Will Be A Good Way To Backup Master Db?

Mar 9, 2005

Currently, I have set up maintenance plan to backup all the databases and I am only the most recent copies. This works very good for me on most of the databases. However, I am having a potential problem with backing up master database.

Based on what I know, I cannot perform a restore on master database. So I am wondering if anyone is able to advise me on a good method to backup the master database and restore it when it needs to be.

Thank you.

View 1 Replies


ADVERTISEMENT

Mutiple Backup Is Good Choice?

Feb 9, 2008



Hi,

I am using a stored procedure to take backup of my database from the Visual Basic Programming.

Before i posted one of my thread with the same thing, so i was recommended to go through with DMOSQL do deal with SQL server with Visual Basic Programming. For me, this takes some time to understand the complete concept.

Because of urgent i am using stored procedure to take backup with the following:

---------------------------------------------------------------------------------------
ALTER PROCEDURE dbo.BackUPBLMSDB

(
@RP nvarchar(200)
)

AS

declare @backupfilename nvarchar(200)
set @backupfilename=@RP
BACKUP DATABASE [BLMSDB] TO DISK = @backupfilename WITH NOFORMAT, NOINIT, NAME = N'BLMSDB-Full Database Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10
---------------------------------------------------------------------------------------
Example @RP="D:ackupBackup-1 09-02-2008 11-24"


Every time i am passing a parameter with somename and dateandtime(System).
Example

Backup-1 09-02-2008 11-24 2900KB
Backup-1 09-02-2008 12-30 2900KB
Backup-1 09-02-2008 18-10 5400KB
Backup-1 09-02-2008 22-00 2900KB
Backup-1 09-02-2008 22-00 2900KB

I would like to clear my doubt, is it a good practice to take backup with different names. The above one i store four backups . If the system crashes and i created the new database with the same schema without any data present in the tables, can i restore previous backup database to the newly created database.

Moreover, The first two backups contains "2900KB", the third one is "5400KB" after the data is being modified. Look at the fourth one it is "2900KB". Why the size is being reduced to "2900KB" after taking backup eventhough i didn't delete or added data into the database.



Hope you will solve my problem.

Thanks.



Best Regards,
Kashif Chotu





View 5 Replies View Related

Would You Please Suggest A Good Backup Tape Drive?

Jul 23, 2005

First posting to the group. I have received a lot of valuable info from youguys. Now, an OT question:What's a good tape drive to perform unmanned weekly backups for a WindowsXP Pro box running SQL server 2000?--Joel Farris | AIM: FarrisJoel** Their Web. Your Way. http://getfirefox.com **

View 1 Replies View Related

Why Is Simply Copying The Mdf/ldf Files NOT A Good Way To Backup?

Mar 12, 2008

Hi.

What I want to know is what the issues/scenarios are of only using copies of mdf/ldf files as backups.

TIA.

View 3 Replies View Related

Backup Master

Apr 17, 2007

im performing a backup on the master and i receive this error
"backup database permission denied in database master"
anyone input will be appreaciated.

View 5 Replies View Related

Cannot Backup Log Of Master

Mar 23, 2006

Hi,

Server: Msg 4212, Level 16, State 1, Line 1
Cannot back up the log of the master database. Use BACKUP DATABASE instead.

The recovery mode is set to full. Why am I not able to back up the log of master?

Thanks.

View 1 Replies View Related

Master DB Won't Backup W/MaintPlan

Oct 25, 2001

Environment: 2 different SQL 2000 servers both with service Pack 1 installed. OS is NT5/Windows 2000 server. Dell 4300 dual processor Servers.


Problem: When I create a maintenance plan to backup the system databases only the model will be backed up. (The model & the msdb are skipped). This occurs whether I select the 'System Databases Only' option, or whether I explicitly select each individual database (from the first page of the Create New Maint Plan Wizard). I can back up the master and msdb manually. But, I cannot get it done through creating a maintenance plan. I find nothing in the SQL Errorlog to explain why this is failing.

Do you have a solution? Even any suggestions? Most appreciated!

Mark Blackburn
Consultant to
California Department of Parks & Rec
Sacramento, CA
mblackburn@parks.ca.gov
-or-
mark_blackburn@yahoo.com

Thanks!

View 1 Replies View Related

Master Log Backup Issue

May 20, 2008

We run a script to check the blocking issues every morning. We find a LogBack up job for master db running everyday. But the Backup team doesn't see it on their systems. The backup team says, they are not running any backup job . But this backup job shows up in the process Info. So, we manually kill it everyday. It takes a lot of wait time. We can't find where it comes from ?

Below is the info from the Process Info Page

Process ID : 86
User: ABCAdmistrator
Database: Master
Status: Runnable
Open Transactions: 0
Command: Backup Log
Application: Symantec Backup Exec for Windows
Wait Time: 42600844
WaitType: NetworkIO
CPU : 0
Physical IO: 12
memory Used: 1
Login Time: 5/19/2008 10:04:53 PM
Host: XYZ
Network Library : LPC
Network Address: 0015C58947C3
Blocked by : 0
Blocking : 0

This is the info from the Process details
BACKUP LOG [abc_xyc] TO virtual_device = 'abc_xyz_00__bfbdb0fa_9b94_4392_8ce0_0719ad2a00c5_ ' WITH NO_TRUNCATE

Master DB Properties
Size: 71MB
Space Available : 17MB
No of users: 49
Data File location: c:ProgramFilesMicrosoftSQLserverMSSQLdatamast er.mdf
Automatically grow file (enabled) 10%
Transaction Log File: c:ProgramFilesMicrosoftSQLserverMSSQLdatamast log.ldf
Automatically grow file (enabled) 10%
Reocovery Model (Master): Simple
Auto update stats, and Auto create stats enabled.


Please let me know if any one knows what the problem was??



Thanks

Rahul

View 1 Replies View Related

Master Backup Frequency

Feb 18, 2004

Hi,

On a large production SQL servers how often should the Master and MSDB Backups be performed?

We currently do one every night but I am thinking this is overkill, would once a week be sufficient?

Cheers

View 3 Replies View Related

Backup - Restore Of Master Problem

Apr 22, 1999

I am trying to replicate our production SQL 6.5 environment on an isolated network for Y2K testing. I have installed SQL 6.5 on the test server, then ran sp_help_revdatabase on the production server to generate scripts for recreating the databases for testing. I used a zip drive to move dumps of the user databases from production to test. I now need to move over data from the master db, to recreate security and logins. But I don't think I can simply do a dump and restore, as I am not creating copies of all the production databases from our production server, just a few of them. Does anyone have a suggestion for a procedure to replicate the info I need from our production master database? Am I correct that restoring a dump of our production master database to the Y2K environment would be inappropriate?

Please advise.

Thanks,

Fred Smith
fsmith@physio-control.com
Physio-Control Corp.

View 1 Replies View Related

Master Transaction Log Backup Fails

Nov 9, 2004

:eek:

Okay. I changed the times that the transaction logs are backed up, via the built in maintenance schedule. It was then that I started to get failures only on the Transaction log backup for the master. The error that I get from the history log is Backup can not be performed on this database. This sub task is ignored. If I look in the file that is saved to disk :


Starting maintenance plan 'DB Maintenance Plan1' on 09/11/2004 02:30:00
Backup can not be performed on database 'master'. This sub task is ignored.

[1] Database onyx: Transaction Log Backup...
Destination: [R:BACKUPonyxonyx_tlog_200411090230.TRN]

** Execution Time: 0 hrs, 0 mins, 23 secs **

[2] Database onyx: Verifying Backup...

** Execution Time: 0 hrs, 0 mins, 8 secs **

Deleting old text reports... 1 file(s) deleted.

End of maintenance plan 'DB Maintenance Plan1' on 09/11/2004 02:30:31
SQLMAINT.EXE Process Exit Code: 1 (Failed)

I changed the backup back to its original time as this was the only change made. This has not resolved the problem. As I am new to SQL and still finding my feet All the other SQL maintenance plans that I changed are working fine.


Thanks

Steve

View 5 Replies View Related

Restore Tables From Master Backup

Nov 28, 2012

Version: 10.00.1600 (I believe the first 2008 release)

I made a backup from the master, model and msdb system tables. Now I travelled to a different country, and I only have the backups and would like to access them. I was able to restore the master db to a new installation of mssql but, it wont start. I do know why: as I read after I quickly realised that master backups take the accounts, serverID, groups, directory structure, and lots of other things.Basically I have no chance of doing a master restore. The question here: Is there any way of getting my data out from the master backup file (thats where my stuff is)? I'm thinking of "restoring" it to a separate non-master db, table, anything. I know now that I did the most stupidest thing ever, but believe me I don't want the last half years work to just disappear.

View 2 Replies View Related

Restore Master Database From Backup

Feb 24, 2004

I wish to restore master database which was located on "e:" on my server.
the restored copy is residing on "f:"
when i restore the backup and restart, the server does not start.

is there any way to avoid this and perform the restoration succesfully.
or the process followed by me is wrong/incomplete.

do let me know...TIA

View 1 Replies View Related

Master DB Backup File Issue

May 21, 2004

I have my master database with 10 MB datafile and 4 MB log file,But my backup file for the master DB is 11 GB in size.How could it possible.
Can i delete that backup and create a newone...
Thanks.

View 1 Replies View Related

Can We Take Differential Backup Of Master Databae?

Feb 13, 2008

Can we take differential backup of Master databae?
If yes please give me details how?
if No Please give me details why not?

View 2 Replies View Related

Failure Of Diff Backup Of Master Database

Mar 25, 2008



Hello,
My master database (MS SQL 2005) has simple recovery model, however, when performing diff backup of "all databases", I am getting the following error:

Executing the query "BACKUP DATABASE [master] TO DISK = N'X:\Database Backups\diff backups\master\master_backup_200803251235.bak' WITH DIFFERENTIAL , NOFORMAT, NOINIT, NAME = N'master_backup_20080325123514', SKIP, REWIND, NOUNLOAD, STATS = 10
" failed with the following error: "You can only perform a full backup of the master database. Use BACKUP DATABASE to back up the entire master database.
BACKUP DATABASE is terminating abnormally.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

If I choose to back up only "All user databases", then it performs just fine. Why I cannot run diff backup of master?

View 5 Replies View Related

Master Table Differential Backup Not Working.

Oct 17, 2006

Newbie to backups here. I'm trying to setup a Maintenence Plan for backing up the system tables. For some reason the Differential backup on the Master table is failing.

Can you NOT run differential backups on the Master table?

Thanks.

View 1 Replies View Related

Backup Master Key, Cannot Write Into File 'c: Empmaster'. Verify That You Have Write Permissions, That The File Path Is Valid.

Jul 12, 2006

Hi,



I tried to backup the master key by the following syntax :

OPEN MASTER KEY DECRYPTION BY PASSWORD = 'mypassword'

BACKUP MASTER KEY TO FILE = 'c: empmaster' ENCRYPTION BY PASSWORD = 'mypassword'

but it failed and i got the following message:

Cannot write into file 'c: empmaster'. Verify that you have write permissions, that the file path is valid, and that the file does not already exist.

NB: I am using the "sa" user to execute this command.

I know that we have a security permission issue , but where and how ?



Regards,

Tarek Ghazali

SQL Server MVP

View 12 Replies View Related

Master Information And Details: How Can I Get The Master ID?

Jun 19, 2007

I got a File with sales orders and their details.

Step 1. First I am filtering the Sales Order information and inserting it in my Sales Orders table.
Step 2.Then I am filtering the details from the sales Order and inserting them in the respective table.

My Problem is that the Sales Order File does not contain the Sales Order key (ID), this is generated by the SQL Server. How can get it in order to use it in the second step? I need it because it is a foreign key in the details table.

Any Idea?


View 4 Replies View Related

SQL Master/Detail (Master Query Based On Detail Values)

Mar 25, 2008



Hello,

I'm new to SQL and need help with a query. Not sure if this is the right place.

I have 2 tables, one MASTER and one DETAIL.

The MASTER table has a masterID, name and the DETAIL table has a detailID, masterID, and value columns.

I want to return a populated MASTER table with entries based on the DETAIL.value.

SELECT MASTER.*
FROM MASTER
WHERE DETAIL.value > 3

This is a simplified version of my problem. I can't figure out how to set the relationship between MASTER.masterID and DETAIL.masterID. If I do an INNER JOIN, the number of results are based on the number of DETAIL entries. I only want one entry per MASTER entry.

Hope this makes sense.

How can I do this?

GrkEngineer

View 9 Replies View Related

BACKUP LOG Cannot Be Performed Because There Is No Current Database Backup. BACKUP LOG Is Terminating Abnormally.

Jan 31, 2008



Hi there

I'm getting this message on my third automated backup of the transaction logs of the day. Both databases are in full recovery mode, both successfully backed up at 01.00. The transaction logs backed up perfectly happily at 01:30 and 05:30, but failed at 09:30.

The only difference between 05:30 and 09:30's backups is that the log files were shrunk at 08:15 (the databases in question are the ones that sit under ILM2007, and keeping the log files small keeps the system running better).


Is it possible that shrinking the log files causes the database to think that there hasn't been a full database backup?

Thanks

Jane

View 3 Replies View Related

Master Data Services :: Master Data Services - Data Push Back To Excel Sheet

Nov 2, 2015

We already integrated different client data to MDS with MS Excel plugin, now we want to push back updated or new added record to source database. is it possible do using MDS?  Do we have any background sync process to which automatically sync data to and from subscriber and MDS?

View 4 Replies View Related

Good SQL Book

May 30, 2007

hello
 i am just starting to learn sql and know the basics, but now im looking for a good book to learn some more. A book that covers stored procedure would be very useful. If possible a book with q and a would be very good because i feel this tests if u understand what was just explaned. but if there is a good book without this it is ok. All sugestions welcome
 
NubNub

View 1 Replies View Related

What Is Good Approch

Aug 7, 2007

hii am using vs2005 for development of web application for reporting with sqlexpress05  as back end .later when project is ready for deployment i have to deploy the project on remote hosting server where i have limited access and sqlserver2000 database to use.i want to ask is there are any limitation or problem of sqlexpress while deploying it on remote sqlservre 2000.and should i have to to continue with sqlexpress as back end.is there any problems for using dynamic database connections(by using smart tags) other than programaticaly connecting database to asp.net ie by writing code.i am new in developmentplease guide me, please guide   

View 2 Replies View Related

Good Searching

Jan 7, 2008

 hello all..i have make a searching, but is not good. my code like that:Public Class getall Public Function getitem(ByVal id As String) As DataSet        Dim con As SqlConnection = New SqlConnection("Data Source=BOYsqlexpress;Initial Catalog=GAMES;User ID=ha;Password=a")        Dim ds As New DataSet()          Dim adapter As New SqlDataAdapter("select * from [item] where name like '%" & id & "%'", con)        Try            con.Open()            adapter.Fill(ds, "user")            Return ds        Catch ex As Exception            Console.Write(ex.Message)        Finally            con.Close()            con = Nothing        End Try        ' Next        Return ds    End Functionand class  my item in database is containning  dragon ball 3, counter strikeif i insert dragon, it can display dragon ball 3.but if i insert dragon 3, it not display dragon ball 3.it should display dragon ball 3 .how should i change my code?thx... 

View 1 Replies View Related

WHERE (@ColName=...) - Not Good?!..

Dec 12, 2003

Hi, gurus!
Of course, you know that this:

... WHERE (COLUMNNAME = @PARAMETER)

works perfectly, but the opposite - when I need to pass
a column name as a parameter - the SQL Server 2000 cursing me...

I was designing some stored procedures and here is what I need:

... WHERE (@COLUMNNAME = 1)

^^^ I need to use a different column names here, so I decided to use
a parameter, but it does not even budge. Of course, I can use workaround:

IF @COLUMNNAME = 'External' THEN
BEGIN
SELECT ... WHERE (External = 1)
END

But, I SO! do not want to do it 9 times - I have 9 column names
to check...

Maybe, there is another way to do it?..

Thanks,
Cheers!

View 3 Replies View Related

I've Never Been Good With Relationships

Feb 15, 2004

I'm having some trouble working out how to query some data. Rather than explain up front, here's some examples of what I want to achieve:

*******************************************************

I've got a structure which looks vaguely like this:

[ANCESTORS]

Grandparent
Parent
Child

If limit by grandparents, then I only get the lineage for that particular grandparent. I.e.:


SELECT *
FROM [ANCESTORS]
( some sort of joins here )
Where Grandparent.Name = 'Cybill'



This would return all of the children of 'Cybill' and their children. Now, if I use the following query:


SELECT *
FROM [ANCESTORS]
( some sort of joins here )
Where Child.Name = 'Jean'



This would return Jean's parents + the parents of Jean's parents (Jean's grandparents).

Likewise, if I enter:


SELECT *
FROM [ANCESTORS]
( some sort of joins here )
Where Parent.Name = 'Ron'



Then I would get Ron's parents and also his children.


*******************************************************

So, as you can see, at first it appears that I'm after a LEFT JOIN - meaning that the grandparents don't need to have child records to be returned, but, then it turns out that I need INNER JOINS - to limit grandparents when I choose children.

Can anybody see my dilemma here?

Mark-up ASP.net posts here
MarkItUp.com

View 10 Replies View Related

MCDBA Is Good For DBA?

Jan 21, 2001

Hi All

I am planning to do MCDBA, whether it'd good for DBA's, is't worth of doing or not, Please send me your comments.

Thanks

Regards
Ram

View 5 Replies View Related

Good Book For Using DTS?

Aug 23, 2000

I have been using DTS somewhat, but I would like to read a good discussion (with cpmplex examples) of it.

Anyone found either a book on DTS or a good section in a book?

Thanks,
Judith

View 1 Replies View Related

Any Good DTS Books

Sep 30, 2002

Does anyone know of any good books on DTS? I am currently using SQL 7.

Thanks in advance

View 2 Replies View Related

Any Good Books

Sep 14, 1998

Hi there,

Any good books to Know the internals of MS-SQL server 6.5

Thanks
Vivek

View 2 Replies View Related

What's A Good SQL Editor?

Oct 28, 2004

Hi everyone

I'm wondering if there's a better SQL Editor than MS Query Analyzer on the market? I like a lot of the functionality provided by QA but want extra stuff like you get in VB6: intelli-sense (sytanx prompting), auto-complete (CTRL+Space provides list of sp's and tables, etc.) plus any other time saving features.

I've tried a few products but nothing quite hits the mark. Is there a program you use and recommend I trial?


Cheers - Andy

View 14 Replies View Related

Good SQL Query

Mar 7, 2005

Folks, i've got a table with a column; ACCOUNT VARCHAR(30). All the values numeric though. (leave abt the datatype yet).
The column is clustered indexed.

SELECT * FROM MYTABLE WHERE LEFT(ACCOUNT,3)='123'
execution plan shows CLUSTERED INDEX SCAN.

SELECT * FROM MYTABLE WHERE ACCOUNT LIKE '123%'
execution plan shows CLUSTERED INDEX SEEK.

How, why. Why doesn't the optimizer works good for the first query?


Howdy!

View 7 Replies View Related







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