July 21, 2009 at 7:14 am
Hi
I had to re-image my drive due to hackers. I have done that, reinstalled SQL 2000, and set up my databases. I have old drive set up as slave.
The problem is, I forgot to save all my SQL Jobs. Can I grab them off the old drive?
Does anyone know where SQL server stores the SQL job information?
Thanks
Pete
July 21, 2009 at 7:17 am
All of the jobs are stored in the msdb system database. If you have a backup of that database on your old drive, you can restore it over your new msdb database and the jobs will reappear.
July 21, 2009 at 9:12 am
Thanks but I am still having issues. I have a back up of MSDB from the other sql installation which contains the job info. So I try to restore the back up into the new sql installation and I get error - Cannot be restored because it was created by a different version of the server.
So is there anyway to extract the job info from the back up.
Thanks
Pete
July 21, 2009 at 9:31 am
Your new SQL Server is at a lower version than the old SQL Server and database restores cannot be performed to a lower version.
You can get the version of the old server from the backup file by running the below SQL and examining three columns: SoftwareVersionMajor, SoftwareVersionMinor, and SoftwareVersionBuild. Example values might be 9 ,0,3042. RESTORE HEADERONLY FROM DISK = ' backupfile name'
You can get the version of the new SQL Server by running select serverproperty('ProductVersion')
An example value might be 9.00.2047
Then use this site's SQL Server build list to determine what Service Packs and hot fixes need to the applied to the new SQL Server to get to the same version as the old SQL Server.
http://www.sqlservercentral.com/articles/Administration/2960/
SQL = Scarcely Qualifies as a Language
July 21, 2009 at 9:49 am
pete (7/21/2009)
Thanks but I am still having issues. I have a back up of MSDB from the other sql installation which contains the job info. So I try to restore the back up into the new sql installation and I get error - Cannot be restored because it was created by a different version of the server.So is there anyway to extract the job info from the back up.
Thanks
Pete
I can think of two ways.
1. Install a sql server with the same version as ur msdb backup file. Restore the msdb database, script out jobs and schedules, apply the scripts on the target msdb database.
2. restore the backup to a different database(not msdb) and copy the contents of jobs and related tables to the current msdb database. Table structure can be different. so be more careful in doing this.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply