Showing posts with label successfully. Show all posts
Showing posts with label successfully. Show all posts

Wednesday, March 28, 2012

Scheduling DTS Package using a stored procedure problem

The DTS package runs fine through Enterprise manager successfully.
However, when scheduled through a job that runs the dts through the
following code:

DECLARE @.findfile int
Exec @.findfile = master.dbo.xp_cmdShell 'dir
\\ServerName\folder\filename.xls', no_output
IF (@.findfile=0)
BEGIN
Exec master.dbo.xp_cmdshell 'dtsrun -E -Server\Instance
-N"DataImport"'
END

The servername specified in the above statement in a different server
than the server that the package resides on.

This is the error that I get when I try to run the same code using
query analyzer:

DTSRun: Loading...
DTSRun: Executing...
DTSRun OnStart: DTSStep_DTSExecuteSQLTask_1
DTSRun OnFinish: DTSStep_DTSExecuteSQLTask_1
DTSRun OnStart: DTSStep_DTSDataPumpTask_1
DTSRun OnError: DTSStep_DTSDataPumpTask_1, Error = -2147024893
(80070003)
Error string: The system cannot find the path specified.

Error source: Microsoft Data Transformation Services (DTS) Package
Help file: sqldts80.hlp
Help context: 1100

Error Detail Records:

Error: -2147024893 (80070003); Provider Error: 0 (0)
Error string: The system cannot find the path specified.

Error source: Microsoft Data Transformation Services (DTS) Package
Help file: sqldts80.hlp
Help context: 1100

Error: -2147024893 (80070003); Provider Error: 0 (0)
Error string: Cannot open a log file of specified name. The system
cannot find the path specified.

Error source: Microsoft Data Transformation Services (DTS) Package
Help file: sqldts80.hlp
Help context: 4700

DTSRun OnFinish: DTSStep_DTSDataPumpTask_1

Error: -2147220440 (80040428); Provider Error: 0 (0)
Error string: Package failed because Step
'DTSStep_DTSDataPumpTask_1' failed.
Error source: Microsoft Data Transformation Services (DTS) Package
Help file: sqldts80.hlp
Help context: 700

NULL

The job is owned by the SQLService account(Windows account) that has
System Admin rights and also is part of the Domain Admin User group.
The Domain Admin User group has full rights on the file that the DTS is
trying to access.

Any help in trying to figure out why the schedule job cannot find the
file path would be appreciated.

Thanks

KRI found the problem was the path in the log file : was using a mapped
drive vs a UNC path.

Scheduling DTS package that executes other DTS packages

Hey guys...

We have a particular process in place that uses many different DTS packages that have to be scheduled. We can successfully run a DTS package from EM. Furthermore, we can successfully schedule a DTS package and run it successfully from SQLServerAgent. And finally... I can create a DTS package that executes other DTS packages and execute it successfully from EM.

Our problem is when I attempt to schedule a DTS package that executes other packages I get an error that says:

Error string: Invalid class string Error source: Microsoft Data Transformation Services (DTS) Package Help file: sqldts.hlp Help context: 713. Process Exit Code 1. The step failed.

I've seen all over the place issues regarding the inability to schedule a DTS package... but we are able to do this. This is just limited to those scheduled packages that have an "Execute Package Task" in them.

Thanks in advance...I dont know wich version of server you got..this ansver goes for 7.0 (might also work on 2000).

You can add an "Execute process task" in the package that should execute other packages (one for each package).
It should run DTSrun.exe, the parameters you need is /S ServerName /U Login /P Password /N PackageName

Works for me!|||I am having the same issue as we speak. It seems that I have the SQL 2000 client tools installed on my WS, but the server is running SQL 7 with SQL 7 client tools. There are some new tasks shipped with SQL 2000. The one I am having the issue with is dynamic properties task. When I open the package on SQL 7, I get an error message that says "Invalid Class String", this is caused becauase the server does not have the same tasks or clients tools installed.

Microsofts workaround is to install the SQL 2000 client tools on the server.

I am looking for a workaround without installing SQL 2000 tools in production.

Any Thoughts?

SHICKS

Tuesday, March 20, 2012

Scheduled Jobs & Failed Notifications

Periodically on jobs scheduled in the SQL Server Management, a scheduled job will execute successfully, but fail to email the notification to the operator that the job completed successfully.....anyone have any thoughts as to the cause
I welcome any input ! :)Make sure your windows application log is not full, if it is, you will not
get notified.
--
Ray Higdon MCSE, MCDBA, CCNA
--
"David Moe" <dmoe@.coorstek.com> wrote in message
news:BCDD08D7-A9D6-4717-93D0-100DBBF38C98@.microsoft.com...
> Periodically on jobs scheduled in the SQL Server Management, a scheduled
job will execute successfully, but fail to email the notification to the
operator that the job completed successfully.....anyone have any thoughts
as to the cause ?
> I welcome any input ! :)|||if you never get email notification work, that means
maybe you havn't configure the sql mail utility.
>--Original Message--
>Periodically on jobs scheduled in the SQL Server
Management, a scheduled job will execute successfully,
but fail to email the notification to the operator that
the job completed successfully.....anyone have any
thoughts as to the cause ?
>I welcome any input ! :)
>.
>|||This thread is on a server which has other working alerts, typically including the one that failed
All other alerts executed with no problems...just this one fails periodically....haven't been able to coorelate any problems with server or database(s) on said server
It simply states in both the job history and the application event log that the notification failed. (Event log is set to overwrite
This same operator is used in all of the alerts coming from this particular server
-- David Moe wrote: --
Periodically on jobs scheduled in the SQL Server Management, a scheduled job will execute successfully, but fail to email the notification to the operator that the job completed successfully.....anyone have any thoughts as to the cause
I welcome any input ! :)

Scheduled job is not running successfully. Event ID: 208

SQL server standard edition version 8.00.2039 [SP4] on MSWindows NT 5.2
[3790] .
We have a procedure that is scheduled to run every night . It is running
fine for last few months. Last week it stopped running successfully. In
application event log we are getting warning message:
====================================
Event Type:Warning
Event Source:SQLSERVERAGENT
Event Category:Job Engine
Event ID:208
Date:6/12/2007
Time:4:23:19 AM
User:N/A
Computer:computername1
Description:
SQL Server Scheduled Job 'abcd-Daily 1' (0xC456F221DE41D5469B869BA1657DDDC0)
- Status: Failed - Invoked on: 2007-06-12 04:00:00 - Message: The job failed.
The Job was invoked by Schedule 6 (6.x schedule). The last step to run was
step 1 (Step 1).
====================================
No error message in sql server errorlog.
ontario, canada
============================================
Its a permission error in step1.
Executed as user: username. SELECT permission denied on object
'a_bb_REQUEST_RESOURCE', database 'databasename', owner 'dbo'. [SQLSTATE
42000] (Error 229). The step failed.
============================================
ontario, canada
"vt" wrote:

> HI
> Do this
> Enterprise manager->Management->sql Server agent->jobs
> select your job and click the job history from the drop down menu
> this will open up job history dialog box, click the show step details, you
> can see the actual error message there, post that error message
> Regards
> VT
> Knowledge is power, share it...
> http://oneplace4sql.blogspot.com/
> "db" <db@.discussions.microsoft.com> wrote in message
> news:DA7F4D29-8754-4A40-ABAD-AEFE4890BB41@.microsoft.com...
>
>
|||It points to permission error.
Executed as user: abc. SELECT permission denied on object
'a_bb_REQUEST_RESOURCE', database 'databasename', owner 'dbo'. [SQLSTATE
42000] (Error 229). The step failed.
ontario, canada
"vt" wrote:

> HI
> Do this
> Enterprise manager->Management->sql Server agent->jobs
> select your job and click the job history from the drop down menu
> this will open up job history dialog box, click the show step details, you
> can see the actual error message there, post that error message
> Regards
> VT
> Knowledge is power, share it...
> http://oneplace4sql.blogspot.com/
> "db" <db@.discussions.microsoft.com> wrote in message
> news:DA7F4D29-8754-4A40-ABAD-AEFE4890BB41@.microsoft.com...
>
>
|||Its a permission error.
Executed as user: abc. SELECT permission denied on object
'a_bb_REQUEST_RESOURCE', database 'databasename', owner 'dbo'. [SQLSTATE
42000] (Error 229). The step failed.
ontario, canada
"vt" wrote:

> HI
> Do this
> Enterprise manager->Management->sql Server agent->jobs
> select your job and click the job history from the drop down menu
> this will open up job history dialog box, click the show step details, you
> can see the actual error message there, post that error message
> Regards
> VT
> Knowledge is power, share it...
> http://oneplace4sql.blogspot.com/
> "db" <db@.discussions.microsoft.com> wrote in message
> news:DA7F4D29-8754-4A40-ABAD-AEFE4890BB41@.microsoft.com...
>
>
|||It worked. Thanks vt.
ontario, canada
"Vt" wrote:

> Hi
> ok..Now give the proper permission and try..
>
> Regards
> Vt
> Knowledge is power;Share it
> http://oneplace4sql.blogspot.com
>
> "db" <db@.discussions.microsoft.com> wrote in message
> news:9AE94423-FD7C-4552-BFB5-4EDA062914D8@.microsoft.com...
>
>

Scheduled job is not running successfully. Event ID: 208

SQL server standard edition version 8.00.2039 [SP4] on MSWindows NT 5.2
[3790] .
We have a procedure that is scheduled to run every night . It is running
fine for last few months. Last week it stopped running successfully. In
application event log we are getting warning message:
==================================== Event Type: Warning
Event Source: SQLSERVERAGENT
Event Category: Job Engine
Event ID: 208
Date: 6/12/2007
Time: 4:23:19 AM
User: N/A
Computer: computername1
Description:
SQL Server Scheduled Job 'abcd-Daily 1' (0xC456F221DE41D5469B869BA1657DDDC0)
- Status: Failed - Invoked on: 2007-06-12 04:00:00 - Message: The job failed.
The Job was invoked by Schedule 6 (6.x schedule). The last step to run was
step 1 (Step 1).
====================================
No error message in sql server errorlog.
--
ontario, canadaHI
Do this
Enterprise manager->Management->sql Server agent->jobs
select your job and click the job history from the drop down menu
this will open up job history dialog box, click the show step details, you
can see the actual error message there, post that error message
Regards
VT
Knowledge is power, share it...
http://oneplace4sql.blogspot.com/
"db" <db@.discussions.microsoft.com> wrote in message
news:DA7F4D29-8754-4A40-ABAD-AEFE4890BB41@.microsoft.com...
> SQL server standard edition version 8.00.2039 [SP4] on MSWindows NT 5.2
> [3790] .
> We have a procedure that is scheduled to run every night . It is running
> fine for last few months. Last week it stopped running successfully. In
> application event log we are getting warning message:
> ====================================> Event Type: Warning
> Event Source: SQLSERVERAGENT
> Event Category: Job Engine
> Event ID: 208
> Date: 6/12/2007
> Time: 4:23:19 AM
> User: N/A
> Computer: computername1
> Description:
> SQL Server Scheduled Job 'abcd-Daily 1'
> (0xC456F221DE41D5469B869BA1657DDDC0)
> - Status: Failed - Invoked on: 2007-06-12 04:00:00 - Message: The job
> failed.
> The Job was invoked by Schedule 6 (6.x schedule). The last step to run
> was
> step 1 (Step 1).
> ====================================> No error message in sql server errorlog.
> --
> ontario, canada|||============================================Its a permission error in step1.
Executed as user: username. SELECT permission denied on object
'a_bb_REQUEST_RESOURCE', database 'databasename', owner 'dbo'. [SQLSTATE
42000] (Error 229). The step failed.
============================================--
ontario, canada
"vt" wrote:
> HI
> Do this
> Enterprise manager->Management->sql Server agent->jobs
> select your job and click the job history from the drop down menu
> this will open up job history dialog box, click the show step details, you
> can see the actual error message there, post that error message
> Regards
> VT
> Knowledge is power, share it...
> http://oneplace4sql.blogspot.com/
> "db" <db@.discussions.microsoft.com> wrote in message
> news:DA7F4D29-8754-4A40-ABAD-AEFE4890BB41@.microsoft.com...
> > SQL server standard edition version 8.00.2039 [SP4] on MSWindows NT 5.2
> > [3790] .
> >
> > We have a procedure that is scheduled to run every night . It is running
> > fine for last few months. Last week it stopped running successfully. In
> > application event log we are getting warning message:
> >
> > ====================================> > Event Type: Warning
> > Event Source: SQLSERVERAGENT
> > Event Category: Job Engine
> > Event ID: 208
> > Date: 6/12/2007
> > Time: 4:23:19 AM
> > User: N/A
> > Computer: computername1
> > Description:
> > SQL Server Scheduled Job 'abcd-Daily 1'
> > (0xC456F221DE41D5469B869BA1657DDDC0)
> > - Status: Failed - Invoked on: 2007-06-12 04:00:00 - Message: The job
> > failed.
> > The Job was invoked by Schedule 6 (6.x schedule). The last step to run
> > was
> > step 1 (Step 1).
> > ====================================> >
> > No error message in sql server errorlog.
> >
> > --
> > ontario, canada
>
>|||It points to permission error.
Executed as user: abc. SELECT permission denied on object
'a_bb_REQUEST_RESOURCE', database 'databasename', owner 'dbo'. [SQLSTATE
42000] (Error 229). The step failed.
--
ontario, canada
"vt" wrote:
> HI
> Do this
> Enterprise manager->Management->sql Server agent->jobs
> select your job and click the job history from the drop down menu
> this will open up job history dialog box, click the show step details, you
> can see the actual error message there, post that error message
> Regards
> VT
> Knowledge is power, share it...
> http://oneplace4sql.blogspot.com/
> "db" <db@.discussions.microsoft.com> wrote in message
> news:DA7F4D29-8754-4A40-ABAD-AEFE4890BB41@.microsoft.com...
> > SQL server standard edition version 8.00.2039 [SP4] on MSWindows NT 5.2
> > [3790] .
> >
> > We have a procedure that is scheduled to run every night . It is running
> > fine for last few months. Last week it stopped running successfully. In
> > application event log we are getting warning message:
> >
> > ====================================> > Event Type: Warning
> > Event Source: SQLSERVERAGENT
> > Event Category: Job Engine
> > Event ID: 208
> > Date: 6/12/2007
> > Time: 4:23:19 AM
> > User: N/A
> > Computer: computername1
> > Description:
> > SQL Server Scheduled Job 'abcd-Daily 1'
> > (0xC456F221DE41D5469B869BA1657DDDC0)
> > - Status: Failed - Invoked on: 2007-06-12 04:00:00 - Message: The job
> > failed.
> > The Job was invoked by Schedule 6 (6.x schedule). The last step to run
> > was
> > step 1 (Step 1).
> > ====================================> >
> > No error message in sql server errorlog.
> >
> > --
> > ontario, canada
>
>|||Its a permission error.
Executed as user: abc. SELECT permission denied on object
'a_bb_REQUEST_RESOURCE', database 'databasename', owner 'dbo'. [SQLSTATE
42000] (Error 229). The step failed.
--
ontario, canada
"vt" wrote:
> HI
> Do this
> Enterprise manager->Management->sql Server agent->jobs
> select your job and click the job history from the drop down menu
> this will open up job history dialog box, click the show step details, you
> can see the actual error message there, post that error message
> Regards
> VT
> Knowledge is power, share it...
> http://oneplace4sql.blogspot.com/
> "db" <db@.discussions.microsoft.com> wrote in message
> news:DA7F4D29-8754-4A40-ABAD-AEFE4890BB41@.microsoft.com...
> > SQL server standard edition version 8.00.2039 [SP4] on MSWindows NT 5.2
> > [3790] .
> >
> > We have a procedure that is scheduled to run every night . It is running
> > fine for last few months. Last week it stopped running successfully. In
> > application event log we are getting warning message:
> >
> > ====================================> > Event Type: Warning
> > Event Source: SQLSERVERAGENT
> > Event Category: Job Engine
> > Event ID: 208
> > Date: 6/12/2007
> > Time: 4:23:19 AM
> > User: N/A
> > Computer: computername1
> > Description:
> > SQL Server Scheduled Job 'abcd-Daily 1'
> > (0xC456F221DE41D5469B869BA1657DDDC0)
> > - Status: Failed - Invoked on: 2007-06-12 04:00:00 - Message: The job
> > failed.
> > The Job was invoked by Schedule 6 (6.x schedule). The last step to run
> > was
> > step 1 (Step 1).
> > ====================================> >
> > No error message in sql server errorlog.
> >
> > --
> > ontario, canada
>
>|||Hi
ok..Now give the proper permission and try..
Regards
Vt
Knowledge is power;Share it
http://oneplace4sql.blogspot.com
"db" <db@.discussions.microsoft.com> wrote in message
news:9AE94423-FD7C-4552-BFB5-4EDA062914D8@.microsoft.com...
> ============================================> Its a permission error in step1.
> Executed as user: username. SELECT permission denied on object
> 'a_bb_REQUEST_RESOURCE', database 'databasename', owner 'dbo'. [SQLSTATE
> 42000] (Error 229). The step failed.
> ============================================> --
> ontario, canada
>
> "vt" wrote:
>> HI
>> Do this
>> Enterprise manager->Management->sql Server agent->jobs
>> select your job and click the job history from the drop down menu
>> this will open up job history dialog box, click the show step details,
>> you
>> can see the actual error message there, post that error message
>> Regards
>> VT
>> Knowledge is power, share it...
>> http://oneplace4sql.blogspot.com/
>> "db" <db@.discussions.microsoft.com> wrote in message
>> news:DA7F4D29-8754-4A40-ABAD-AEFE4890BB41@.microsoft.com...
>> > SQL server standard edition version 8.00.2039 [SP4] on MSWindows NT 5.2
>> > [3790] .
>> >
>> > We have a procedure that is scheduled to run every night . It is
>> > running
>> > fine for last few months. Last week it stopped running successfully. In
>> > application event log we are getting warning message:
>> >
>> > ====================================>> > Event Type: Warning
>> > Event Source: SQLSERVERAGENT
>> > Event Category: Job Engine
>> > Event ID: 208
>> > Date: 6/12/2007
>> > Time: 4:23:19 AM
>> > User: N/A
>> > Computer: computername1
>> > Description:
>> > SQL Server Scheduled Job 'abcd-Daily 1'
>> > (0xC456F221DE41D5469B869BA1657DDDC0)
>> > - Status: Failed - Invoked on: 2007-06-12 04:00:00 - Message: The job
>> > failed.
>> > The Job was invoked by Schedule 6 (6.x schedule). The last step to run
>> > was
>> > step 1 (Step 1).
>> > ====================================>> >
>> > No error message in sql server errorlog.
>> >
>> > --
>> > ontario, canada
>>|||It worked. Thanks vt.
--
ontario, canada
"Vt" wrote:
> Hi
> ok..Now give the proper permission and try..
>
> Regards
> Vt
> Knowledge is power;Share it
> http://oneplace4sql.blogspot.com
>
> "db" <db@.discussions.microsoft.com> wrote in message
> news:9AE94423-FD7C-4552-BFB5-4EDA062914D8@.microsoft.com...
> > ============================================> > Its a permission error in step1.
> > Executed as user: username. SELECT permission denied on object
> > 'a_bb_REQUEST_RESOURCE', database 'databasename', owner 'dbo'. [SQLSTATE
> > 42000] (Error 229). The step failed.
> > ============================================> > --
> > ontario, canada
> >
> >
> > "vt" wrote:
> >
> >> HI
> >>
> >> Do this
> >>
> >> Enterprise manager->Management->sql Server agent->jobs
> >>
> >> select your job and click the job history from the drop down menu
> >> this will open up job history dialog box, click the show step details,
> >> you
> >> can see the actual error message there, post that error message
> >>
> >> Regards
> >> VT
> >> Knowledge is power, share it...
> >> http://oneplace4sql.blogspot.com/
> >> "db" <db@.discussions.microsoft.com> wrote in message
> >> news:DA7F4D29-8754-4A40-ABAD-AEFE4890BB41@.microsoft.com...
> >> > SQL server standard edition version 8.00.2039 [SP4] on MSWindows NT 5.2
> >> > [3790] .
> >> >
> >> > We have a procedure that is scheduled to run every night . It is
> >> > running
> >> > fine for last few months. Last week it stopped running successfully. In
> >> > application event log we are getting warning message:
> >> >
> >> > ====================================> >> > Event Type: Warning
> >> > Event Source: SQLSERVERAGENT
> >> > Event Category: Job Engine
> >> > Event ID: 208
> >> > Date: 6/12/2007
> >> > Time: 4:23:19 AM
> >> > User: N/A
> >> > Computer: computername1
> >> > Description:
> >> > SQL Server Scheduled Job 'abcd-Daily 1'
> >> > (0xC456F221DE41D5469B869BA1657DDDC0)
> >> > - Status: Failed - Invoked on: 2007-06-12 04:00:00 - Message: The job
> >> > failed.
> >> > The Job was invoked by Schedule 6 (6.x schedule). The last step to run
> >> > was
> >> > step 1 (Step 1).
> >> > ====================================> >> >
> >> > No error message in sql server errorlog.
> >> >
> >> > --
> >> > ontario, canada
> >>
> >>
> >>
>
>

Scheduled job is not running successfully. Event ID: 208

SQL server standard edition version 8.00.2039 [SP4] on MSWindows NT 5.2
[3790] .
We have a procedure that is scheduled to run every night . It is running
fine for last few months. Last week it stopped running successfully. In
application event log we are getting warning message:
====================================
Event Type: Warning
Event Source: SQLSERVERAGENT
Event Category: Job Engine
Event ID: 208
Date: 6/12/2007
Time: 4:23:19 AM
User: N/A
Computer: computername1
Description:
SQL Server Scheduled Job 'abcd-Daily 1' (0xC456F221DE41D5469B869BA1657DDDC0)
- Status: Failed - Invoked on: 2007-06-12 04:00:00 - Message: The job failed
.
The Job was invoked by Schedule 6 (6.x schedule). The last step to run was
step 1 (Step 1).
====================================
No error message in sql server errorlog.
ontario, canadaHI
Do this
Enterprise manager->Management->sql Server agent->jobs
select your job and click the job history from the drop down menu
this will open up job history dialog box, click the show step details, you
can see the actual error message there, post that error message
Regards
VT
Knowledge is power, share it...
http://oneplace4sql.blogspot.com/
"db" <db@.discussions.microsoft.com> wrote in message
news:DA7F4D29-8754-4A40-ABAD-AEFE4890BB41@.microsoft.com...
> SQL server standard edition version 8.00.2039 [SP4] on MSWindows NT 5.
2
> [3790] .
> We have a procedure that is scheduled to run every night . It is running
> fine for last few months. Last week it stopped running successfully. In
> application event log we are getting warning message:
> ====================================
> Event Type: Warning
> Event Source: SQLSERVERAGENT
> Event Category: Job Engine
> Event ID: 208
> Date: 6/12/2007
> Time: 4:23:19 AM
> User: N/A
> Computer: computername1
> Description:
> SQL Server Scheduled Job 'abcd-Daily 1'
> (0xC456F221DE41D5469B869BA1657DDDC0)
> - Status: Failed - Invoked on: 2007-06-12 04:00:00 - Message: The job
> failed.
> The Job was invoked by Schedule 6 (6.x schedule). The last step to run
> was
> step 1 (Step 1).
> ====================================
> No error message in sql server errorlog.
> --
> ontario, canada|||========================================
====
Its a permission error in step1.
Executed as user: username. SELECT permission denied on object
'a_bb_REQUEST_RESOURCE', database 'databasename', owner 'dbo'. [SQLSTATE
42000] (Error 229). The step failed.
========================================
====
--
ontario, canada
"vt" wrote:

> HI
> Do this
> Enterprise manager->Management->sql Server agent->jobs
> select your job and click the job history from the drop down menu
> this will open up job history dialog box, click the show step details, you
> can see the actual error message there, post that error message
> Regards
> VT
> Knowledge is power, share it...
> http://oneplace4sql.blogspot.com/
> "db" <db@.discussions.microsoft.com> wrote in message
> news:DA7F4D29-8754-4A40-ABAD-AEFE4890BB41@.microsoft.com...
>
>|||It points to permission error.
Executed as user: abc. SELECT permission denied on object
'a_bb_REQUEST_RESOURCE', database 'databasename', owner 'dbo'. [SQLSTATE
42000] (Error 229). The step failed.
--
ontario, canada
"vt" wrote:

> HI
> Do this
> Enterprise manager->Management->sql Server agent->jobs
> select your job and click the job history from the drop down menu
> this will open up job history dialog box, click the show step details, you
> can see the actual error message there, post that error message
> Regards
> VT
> Knowledge is power, share it...
> http://oneplace4sql.blogspot.com/
> "db" <db@.discussions.microsoft.com> wrote in message
> news:DA7F4D29-8754-4A40-ABAD-AEFE4890BB41@.microsoft.com...
>
>|||Its a permission error.
Executed as user: abc. SELECT permission denied on object
'a_bb_REQUEST_RESOURCE', database 'databasename', owner 'dbo'. [SQLSTATE
42000] (Error 229). The step failed.
--
ontario, canada
"vt" wrote:

> HI
> Do this
> Enterprise manager->Management->sql Server agent->jobs
> select your job and click the job history from the drop down menu
> this will open up job history dialog box, click the show step details, you
> can see the actual error message there, post that error message
> Regards
> VT
> Knowledge is power, share it...
> http://oneplace4sql.blogspot.com/
> "db" <db@.discussions.microsoft.com> wrote in message
> news:DA7F4D29-8754-4A40-ABAD-AEFE4890BB41@.microsoft.com...
>
>|||Hi
ok..Now give the proper permission and try..
Regards
Vt
Knowledge is power;Share it
http://oneplace4sql.blogspot.com
"db" <db@.discussions.microsoft.com> wrote in message
news:9AE94423-FD7C-4552-BFB5-4EDA062914D8@.microsoft.com...[vbcol=seagreen]
> ========================================
====
> Its a permission error in step1.
> Executed as user: username. SELECT permission denied on object
> 'a_bb_REQUEST_RESOURCE', database 'databasename', owner 'dbo'. [SQLSTA
TE
> 42000] (Error 229). The step failed.
> ========================================
====
> --
> ontario, canada
>
> "vt" wrote:
>|||It worked. Thanks vt.
--
ontario, canada
"Vt" wrote:

> Hi
> ok..Now give the proper permission and try..
>
> Regards
> Vt
> Knowledge is power;Share it
> http://oneplace4sql.blogspot.com
>
> "db" <db@.discussions.microsoft.com> wrote in message
> news:9AE94423-FD7C-4552-BFB5-4EDA062914D8@.microsoft.com...
>
>

Monday, March 12, 2012

Scheduled DTS Does Not Work Across Servers

Hi,
I was able to successfully create a scheduled DTS job transferring
objects between two databases that Are On The Same Server.
But was unable to have a scheduled DTS job (transferring objects between
different servers)run automatically.
If I execute it manually, it works ok; but not if it's scheduled.
The agent on all servers is started up.
Would very much appreciate your help.
Thank you very much
Mike
*** Sent via Developersdex http://www.codecomments.com ***
We may need more security information on this one but looks like this is a
permissions problem.
Supposing that you are using Windows authentication, when you execute the
package you most likely have access to both servers. But when you schedule
it, the user running the job maybe does not have access to the other server.
Hope this helps,
Benjamin Nevarez
Database Administrator
"mike" wrote:

> Hi,
> I was able to successfully create a scheduled DTS job transferring
> objects between two databases that Are On The Same Server.
> But was unable to have a scheduled DTS job (transferring objects between
> different servers)run automatically.
> If I execute it manually, it works ok; but not if it's scheduled.
> The agent on all servers is started up.
> Would very much appreciate your help.
> Thank you very much
>
> Mike
> *** Sent via Developersdex http://www.codecomments.com ***
>
|||Purrfect! It worked!
Thank you very much
Mike
*** Sent via Developersdex http://www.codecomments.com ***

Scheduled DTS Does Not Work Across Servers

Hi,
I was able to successfully create a scheduled DTS job transferring
objects between two databases that Are On The Same Server.
But was unable to have a scheduled DTS job (transferring objects between
different servers)run automatically.
If I execute it manually, it works ok; but not if it's scheduled.
The agent on all servers is started up.
Would very much appreciate your help.
Thank you very much
Mike
*** Sent via Developersdex http://www.codecomments.com ***We may need more security information on this one but looks like this is a
permissions problem.
Supposing that you are using Windows authentication, when you execute the
package you most likely have access to both servers. But when you schedule
it, the user running the job maybe does not have access to the other server.
Hope this helps,
Benjamin Nevarez
Database Administrator
"mike" wrote:

> Hi,
> I was able to successfully create a scheduled DTS job transferring
> objects between two databases that Are On The Same Server.
> But was unable to have a scheduled DTS job (transferring objects between
> different servers)run automatically.
> If I execute it manually, it works ok; but not if it's scheduled.
> The agent on all servers is started up.
> Would very much appreciate your help.
> Thank you very much
>
> Mike
> *** Sent via Developersdex http://www.codecomments.com ***
>|||Purrfect! It worked!
Thank you very much
Mike
*** Sent via Developersdex http://www.codecomments.com ***

Scheduled DTS Does Not Work Across Servers

Hi,
I was able to successfully create a scheduled DTS job transferring
objects between two databases that Are On The Same Server.
But was unable to have a scheduled DTS job (transferring objects between
different servers)run automatically.
If I execute it manually, it works ok; but not if it's scheduled.
The agent on all servers is started up.
Would very much appreciate your help.
Thank you very much
Mike
*** Sent via Developersdex http://www.developersdex.com ***We may need more security information on this one but looks like this is a
permissions problem.
Supposing that you are using Windows authentication, when you execute the
package you most likely have access to both servers. But when you schedule
it, the user running the job maybe does not have access to the other server.
Hope this helps,
Benjamin Nevarez
Database Administrator
"mike" wrote:
> Hi,
> I was able to successfully create a scheduled DTS job transferring
> objects between two databases that Are On The Same Server.
> But was unable to have a scheduled DTS job (transferring objects between
> different servers)run automatically.
> If I execute it manually, it works ok; but not if it's scheduled.
> The agent on all servers is started up.
> Would very much appreciate your help.
> Thank you very much
>
> Mike
> *** Sent via Developersdex http://www.developersdex.com ***
>|||Purrfect! It worked!
Thank you very much
Mike
*** Sent via Developersdex http://www.developersdex.com ***

Wednesday, March 7, 2012

Schedule Local Package to perform FTP and DB restore

Hi,

Did anyone successfully set up a local package to first ftp a db.bak
and second perform an automated db restore?

I need to perform an automated task, which ftp nightly backup file to
another server and then restore onto a database and leave the database
in read-only mode for additional transaction logs restore during the
day.

Can someone help and provide the procedures on how to do that?

Thanks in advance."xo55ox" <xo55ox@.hotmail.com> wrote in message
news:abbcb3d7.0405101048.1ce74ed6@.posting.google.c om...
> Hi,
> Did anyone successfully set up a local package to first ftp a db.bak
> and second perform an automated db restore?
> I need to perform an automated task, which ftp nightly backup file to
> another server and then restore onto a database and leave the database
> in read-only mode for additional transaction logs restore during the
> day.
> Can someone help and provide the procedures on how to do that?
> Thanks in advance.

You don't mention your MSSQL version or edition, but you might want to check
out this article about implementing log shipping with the SQL 2000 Standard
edition using a reskit tool:

http://www.winnetmag.com/Article/Ar...3231/23231.html

Or try these links:

http://sqlguy.home.comcast.net/logship.htm
http://www.sql-server-performance.c...og_shipping.asp

If you want to use DTS, it might be easier to execute the package on the
destination (standby) server, because the DTS FTP task can only GET, not
PUT. There is an alternative implementation that will do both here, by the
way:

http://www.sqldts.com/?302

To implement a log shipping package should be straightforward:

1 - Run BACKUP DATABASE on the source server (Execute SQL task)
2 - Use an FTP task to GET the backup file on to the destination server
3 - Run RESTORE DATABASE WITH STANDBY on the target server (Execute SQL
task)

But to add error handling, logging etc. can become more complicated, so you
may want to see if one of the existing solutions is good enough for you.

Simon