DTS and Jobs Import/Export SQL2000

This is a discussion on DTS and Jobs Import/Export SQL2000 within the sqlserver-datamining forums in Data Warehousing category; Hi, I imported DTS and Jobs (SQL2000) from SQLServer1 to SQLServer2 and all the jobs failed. I tested with dtsEmployee and it failed, then I created a job on SQLServer2 itself for dtsEmployee and it worked. So it could be the import of jobs. I opened the one that failed (I imported from SQLServer1) and compared the DTS command and they are different. After copying the command DTS /... from the jobs I created in SQLServer2 into the one I imported then it worked. My biggest dilemma right now is I have 300+ jobs running from SQLServer1 that I imported into ...

Go Back   Database Forum > Data Warehousing > sqlserver-datamining

Database Forums

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 07-23-2008, 02:39 PM
Default DTS and Jobs Import/Export SQL2000

Hi,

I imported DTS and Jobs (SQL2000) from SQLServer1 to SQLServer2 and all the
jobs failed. I tested with dtsEmployee and it failed, then I created a job on
SQLServer2 itself for dtsEmployee and it worked. So it could be the import of
jobs. I opened the one that failed (I imported from SQLServer1) and compared
the DTS command and they are different. After copying the command DTS /...
from the jobs I created in SQLServer2 into the one I imported then it worked.
My biggest dilemma right now is I have 300+ jobs running from SQLServer1 that
I imported into SQLServer2. Is there a way to export/import jobs from one
server to another and avoiding this issues, may be I am doing it wrong...?

Any help is appreciated.

ago

--
Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forums...ining/200807/1

Reply With Quote
  #2  
Old 07-28-2008, 11:37 AM
Default Re: DTS and Jobs Import/Export SQL2000

ago,

You did not mention how you imported the jobs. Did you script them out of
one server and into the new server? Did you copy the rows directly from
sysjobs, sysjobsteps, etc? Did you restore a copy of msdb on the new
server?

When the jobs fail, what errors do they report?

One thing to check is whether the originating_server column in sysjobs
matches the name of your current server.

SELECT name, originating_server, @@SERVERNAME from msdb.dbo.sysjobs
WHERE originating_server <> @@SERVERNAME

If your jobs are still referring to the original server, then you will need
to update the originating_server column in your new msdb. You can do it
like this:

1. Stop SQL Server Agent
2. UPDATE msdb.dbo.sysjobs SET originating_server = @@SERVERNAME
3. Start SQL Server Agent

RLF

"ago via SQLMonster.com" wrote in message
news:8796552f938db-at-uwe...
> Hi,
>
> I imported DTS and Jobs (SQL2000) from SQLServer1 to SQLServer2 and all
> the
> jobs failed. I tested with dtsEmployee and it failed, then I created a job
> on
> SQLServer2 itself for dtsEmployee and it worked. So it could be the import
> of
> jobs. I opened the one that failed (I imported from SQLServer1) and
> compared
> the DTS command and they are different. After copying the command DTS /...
> from the jobs I created in SQLServer2 into the one I imported then it
> worked.
> My biggest dilemma right now is I have 300+ jobs running from SQLServer1
> that
> I imported into SQLServer2. Is there a way to export/import jobs from one
> server to another and avoiding this issues, may be I am doing it wrong...?
>
> Any help is appreciated.
>
> ago
>
> --
> Message posted via SQLMonster.com
> http://www.sqlmonster.com/Uwe/Forums...ining/200807/1
>



Reply With Quote
  #3  
Old 07-28-2008, 11:46 AM
Default Re: DTS and Jobs Import/Export SQL2000

Of course, it some of your jobs have target servers, then you should change
the update to:

UPDATE msdb.dbo.sysjobs SET originating_server = @@SERVERNAME
WHERE originating_server = 'Old server name'

RLF

"Russell Fields" wrote in message
news:ekD6s9L8IHA.2064-at-TK2MSFTNGP02.phx.gbl...
> ago,
>
> You did not mention how you imported the jobs. Did you script them out of
> one server and into the new server? Did you copy the rows directly from
> sysjobs, sysjobsteps, etc? Did you restore a copy of msdb on the new
> server?
>
> When the jobs fail, what errors do they report?
>
> One thing to check is whether the originating_server column in sysjobs
> matches the name of your current server.
>
> SELECT name, originating_server, @@SERVERNAME from msdb.dbo.sysjobs
> WHERE originating_server <> @@SERVERNAME
>
> If your jobs are still referring to the original server, then you will
> need to update the originating_server column in your new msdb. You can do
> it like this:
>
> 1. Stop SQL Server Agent
> 2. UPDATE msdb.dbo.sysjobs SET originating_server = @@SERVERNAME
> 3. Start SQL Server Agent
>
> RLF
>
> "ago via SQLMonster.com" wrote in message
> news:8796552f938db-at-uwe...
>> Hi,
>>
>> I imported DTS and Jobs (SQL2000) from SQLServer1 to SQLServer2 and all
>> the
>> jobs failed. I tested with dtsEmployee and it failed, then I created a
>> job on
>> SQLServer2 itself for dtsEmployee and it worked. So it could be the
>> import of
>> jobs. I opened the one that failed (I imported from SQLServer1) and
>> compared
>> the DTS command and they are different. After copying the command DTS
>> /...
>> from the jobs I created in SQLServer2 into the one I imported then it
>> worked.
>> My biggest dilemma right now is I have 300+ jobs running from SQLServer1
>> that
>> I imported into SQLServer2. Is there a way to export/import jobs from one
>> server to another and avoiding this issues, may be I am doing it
>> wrong...?
>>
>> Any help is appreciated.
>>
>> ago
>>
>> --
>> Message posted via SQLMonster.com
>> http://www.sqlmonster.com/Uwe/Forums...ining/200807/1
>>

>
>



Reply With Quote
Reply


Thread Tools
Display Modes



All times are GMT -4. The time now is 02:49 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Integrated by bbpixel2008 :: jvbPlugin R1013.368.1

Search Engine Friendly URLs by vBSEO 3.1.0
vB Ad Management by =RedTyger=
In an effort to better serve ads to our visitors, cookies are used on Mydatabasesupport.com. For more information, check out our Privacy Policy.