On my server running SQL7.0 with SP2, I try to backup my database to a file.
All works well if I run the backup manually, but when I use the schedule option, when I close the Backup properties window and open the window again, the schedule is gone...
Does anyone of you know how to get this working?
I'm looking to schedule a maintenance plan for my databases which I have done.I'd like this database to be copied to another folder and the name altered to include the file name and the current date time stamp.Is this possible in the scheduled maintenance plan?
Hi again, could anyone tell me what to do about this...I'm not a dba but I do need direct access to the sql server such as scheduling new jobs (I can execute them immediately as pkgs or even run them as jobs on my machine, but to schedule I need to go to the server. The NT administrator does not like the idea of anyone else touching his server, so is there any way to circumvent the situation and do the scheduling from my workstation? Someone had mentioned creating an icon on my desktop but I'm not clear on the idea. Thanks a million. I get great help on this website.
I using sqlserver 6.5 and I am trying to schedule a backup and I get this error message, how can I resolve this? This is the error message I am getting:
"The SQLExecutive service is not currently running on this server. This prevents task backup-master from being run."
SQL server 2005 is installed but can not schedule a backup job. In the maintenance plan when selecting a new maintenance plan or maintenance plan wizard an error is produced which is: 'Agent XPs' component is turned off as part of the security configuration for this server. I can see that the SQL Server Agent (Agent XPs is disabled). When trying to start this by right clicking on it in object explorer, the error message is 'unable to start service SQLAgent$SQL2005 on server serverName'. Service Logon failure
I created a backup device and then scheduled a recurring backup of one of my SQL databases for SMS. I right-clicked on the database name and chose All Tasks | Backup and set a daily schedule.
Now I want to delete the whole thing and use Database Maintenance Plans instead. The backup device never showed up in Management | Backup so I deleted the backup files (and devices?) from NT Explorer. The backups still occur, I'm guessing, because I never deleted the Schedule. How do I get these backups to stop?
P.S. Forgive me if this is an elementary questions -- I am new to SQL.
I am setting up a backup on one of my DB's and the network drive does not appear as an location that I can backup too. Only the C drive is present. However, on the server I do have a drive mapped to the network drive, so it should be available. Has anyone encountered this issue before?
I am trying to schedule a daily task to restore the latest backup from a BackupDevice that contains multiple backups. The command to restore is "Load DBName from BackupDevice". Does anyone know how to restore the most current backup from the Backup device?
How do I schedule a backup with SQL Server 2005 Express. When I right-click a database and choose Tasks -> Back Up... I don't get the option to schedule the backup. How do I do?
Hi all,How can I schedule backup in SQL Server 2000 for ALL databases? With SQL Server 2005 I can create maintenance plan to do this, but in the 2000 version I donīt know.thanks!!!!
I want to schedule a daily backup of one of my database in SQL 2005 Enterprise edtion but the problem is, I can't save my job. Please help, here's the error.
=================================== Unable to cast object of type 'Microsoft.SqlServer.Management.Smo.SimpleObjectKey' to type 'Microsoft.SqlServer.Management.Smo.Agent.JobObjectKey'. (Microsoft.SqlServer.Smo) ------------------------------ Program Location: at Microsoft.SqlServer.Management.Smo.Agent.JobCollection.GetObjectByKey(ObjectKeyBase key) at Microsoft.SqlServer.Management.Smo.SimpleObjectCollectionBase.Contains(String name) at Microsoft.SqlServer.Management.SqlManagerUI.JobData.JobExists(String jobName) at Microsoft.SqlServer.Management.SqlManagerUI.JobData.ApplyChanges() at Microsoft.SqlServer.Management.SqlManagerUI.JobPropertySheet.DoPreProcessExecution(RunType runType, ExecutionMode& executionResult) at Microsoft.SqlServer.Management.SqlMgmt.SqlMgmtTreeViewControl.DoPreProcessExecutionAndRunViews(RunType runType) at Microsoft.SqlServer.Management.SqlMgmt.SqlMgmtTreeViewControl.ExecuteForSql(PreProcessExecutionInfo executionInfo, ExecutionMode& executionResult) at Microsoft.SqlServer.Management.SqlMgmt.SqlMgmtTreeViewControl.Microsoft.SqlServer.Management.SqlMgmt.IExecutionAwareSqlControlCollection.PreProcessExecution(PreProcessExecutionInfo executionInfo, ExecutionMode& executionResult) at Microsoft.SqlServer.Management.SqlMgmt.ViewSwitcherControlsManager.RunNow(RunType runType, Object sender)
I set up MA plan to full back up by schedule and I would like to move them each completing process to another computer for preventing failing if harddisk of server was damaged.
How to move them by schedule to any computers ?? Please give me some suggest.
Hi, Is there any method that I can use to backup the whole database to another database without using replication? I have to backup it every half year. Can I do something like setting schedule to run to "Database Backup" module in sql server?
I am running the latest MSDE with the SQL Server 2000 client tools on Windows 2K Server on my production server. I have a simliar setup on my development machine except it is running Windows 2K (non-server). I have the same issue on both machines (I am wondering if it is related to the structure of the database). When I open Enterprise Manager, connect to the server, navigate to the Management folder, and add a new management plan, I experience the following error.
I create a management plan that includes nothing but a complete database backup (i.e. no reorganization of index pages, logging, etc.). I set the backup schedule to occur every Sun at 12:00AM and hit OK. Sometimes I get the following error :"Error 8114: Error converting data type int to tinyint" sometimes not. Either way, though, the same thing happens, the schedule for the backup is not saved. If I reopen the management plan and go to the "Complete Backup" tab, there is no schedule in the schedule box.
I have found this link:http://www.technologyone.org/new-4581847-3733.html
Which appears to be the same issue that I am having, however, there is no resolution there. I was wondering if anyone had any ideas.
I've just started at a new job that is a little bit of a step up from my old job. At my previous job I was responsible for 5 instances of SQL Server with about 30 databases. My new job has me (and a team of 3 other DBA's) responsible for 100+ instances. The backup schedule and process is a mess. I'm thinking about moving everything to Maintenance Plans (some 2000, some 2005). I've always scheduled individual jobs for each database previously and done index maintenance manually, but I'm kinda leaning toward Maintenance Plans just to simplify everything.
Anyone out there have any input on how and why they chose MP's over scheduling backups db by db? Or anyone out there choose not to use MP's for a particular reason? Input is greatly appreciated.
In a recent attempt to keep the size of my transaction log files down I altered the schedule of my SQL Server log backups from running every 15 minutes from 07:00 to 19:00 to run every 15 minutes.My company also uses a Dell AppAssure application to also take backups. The backups are of the entire drives so I don't this will affect the size of my SQL log files but I did notice that AppAssure has a tick box to truncate the SQL logs so it made me wonder that it could affect the size of my log file. The Appassure backups currently run every 15 minutes from 07:00 to 19:00. I'm wondering if I would be able to maintain my log files at a smaller size if I ran this every 15 minutes from 07:00 to 07:00.
Hello to all members. I am using SQL Server 2005 std edition 32 bit The database is configured in compatibility mode to sql server 2000 The backup mode for the database is configured as simple
With SQL Server Agent I am running schedule task of the backup script
The question is:
I would like to save only the last 7 days in repository. This means that when the 8th days has become then the 1st day backup is deleted. in the 9th day the 2nd day backup file is deleted. and so on
I am using the the T-SQL BACKUP DATABASE command with the following arguments: RETAINDAYS = 7 NOFORMAT NOINIT SKIP
I am in situation that the command above only append to the backup file and without deleting the expired backup days.
What I need to change in the parameters that the script will delete the expired backup days.
Hello to all members. I am using SQL Server 2005 std edition 32 bit The database is configured in compatibility mode to sql server 2000 The backup mode for the database is configured as simple
With SQL Server Agent I am running schedule task of the backup script
The question is:
I would like to save only the last 7 days in repository. This means that when the 8th days has become then the 1st day backup is deleted. in the 9th day the 2nd day backup file is deleted. and so on
I am using the the T-SQL BACKUP DATABASE command with the following arguments: RETAINDAYS = 7 NOFORMAT NOINIT SKIP
I am in situation that the command above only append to the backup file and without deleting the expired backup days.
What I need to change in the parameters that the script will delete the expired backup days.
It is too much work when working with Database Maintenance Wizard. lets take a scenario that I have 10 database. I would like that each database will backup into seperate file. I need to create 10 * 7 Maintenance plans.
I have created a directory with the name SDBbackup. Now under the directory SDBbackup I have created 7 directories (1,2,3,4,5,6,7). Each directory is for Sunday=1 , Monday=2 , and etc.
It's very much work if I need to accomplish it with Database Maintenance Wizard.
This is why I am asking a specific question regarding T-SQL.
i am using sql 2005,i want to backup all the databases when i try to schedule a maintenance plan , i dont get all the databases listed event though i authenticate as SA.
Hi I have Database in SQL-Server2000 size is 1.37 GB i am tryn to take backup followin are the problems:- 1. Maintainence Plan for Backup Fails for DB 2. Jobs fails for Backup
--> I goto SQL Server Logs Error message is Operating system error 23(Data error (cyclic redundancy check).)
--> Now i am tryin Backup using command :- Backup Database 'DB1' To Disk ='Path' followin error occurs:- "Nonrecoverable I/O error occurred on file"
--> Now i am doing back-up directly from Enterprise Manager following error message occurs same error comes
Whats surprising Jobs, maintainence plan, Backup for other database is working perfectly, i checked HDD doesnt have any bad blocks etc. i have even changed path for Backups but still only for these database it gives problem
Currently i am working with Sql Server 2005 and i am taking daily backups which is going append same backup file <DB_NAME>.BAK.
Now i am trying to restore this bkp with a new database name and with 2 days before date image.When i am trying to do that, sql server is not showing the versions of the backups.
I took the backup of a database (called students) from one of the machine on our LAN and then tried to restore it on another machine but am unable to restore the database. Below are some details of the problem I am facing:
- The machine on which I am trying to restore the database (i.e. target box) previously had a database by the same name (no it was not a replica). I had deleted this database from the target box before trying to restore the database (of the same name and which was backed-up from the source box)
- When trying to restore (via EM) I get a VERY LONG dialog box with lots of details. Below are some details of what this dialog box says:
The title of the database is MS SQL-DMO (ODBC SQL State: 42000) and It says "The physical name 'C:Program Files.....datastudents.mdf' may be incorrect. File 'students_Data' cannot be restored to 'C:Program Files.....datastudents.mdf'. Use with MOVE to identify a valid location for this file.
And the dialog box provides similar details related to 'students.ldf' Can u please help me with this.
I took the backup of a database (called students) from one of the machine on our LAN and then tried to restore it on another machine but am unable to restore the database. Below are some details of the problem I am facing:
- The machine on which I am trying to restore the database (i.e. target box) previously had a database by the same name (no it was not a replica). I had deleted this database from the target box before trying to restore the database (of the same name and which was backed-up from the source box)
- When trying to restore (via EM) I get a VERY LONG dialog box with lots of details. Below are some details of what this dialog box says:
The title of the database is MS SQL-DMO (ODBC SQL State: 42000) and It says "The physical name 'C:Program Files.....datastudents.mdf' may be incorrect. File 'students_Data' cannot be restored to 'C:Program Files.....datastudents.mdf'. Use with MOVE to identify a valid location for this file.
And the dialog box provides similar details related to 'students.ldf' Can u please help me with this.