Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
SQL
ce
clients
clustering
connect
datamining
datawarehouse
dts
fulltext
jdbcdriver
msde
mseq
newusers
notificationsvcs
odbc
olap
programming
replication
reportingsvcs
security
securitytools
server
setup
sqlxml.viewmapper
tools
xml
  
 
date: Wed, 24 Jun 2009 17:50:01 -0700,    group: microsoft.public.sqlserver.tools        back       


>>Maintenance Plan - backup   
Hi, sql2005 I used the Maintenance Plan wizard to set up a daily backup plan 
to run after hours. So I now have a plan and sql server agent job; both 
created by the wizard.

I right-click the job and select 'Start job at step...' and an error is 
triggered. The log file viewer has the following message.

Unable to start execution of step 1 (reason: line(1): Syntax error). The 
step failed.

I then selected the maintenance plan and modify to view the t-sql. This I 
copied into a new query window and was able to execute successfully!

However, I notice that there is a disclaimer at the bottom of the 'view 
t-sql' popup that says... the t-sql shown here may not necessarily be the 
exact t-sql executed at the server due to any conditional logic you 
configured for this task.
- a red herring maybe?

My questions is how do I resolve this error?

Any ideas or suggestions appreciated :-)

Many thanks,
Jonathan
date: Wed, 24 Jun 2009 17:50:01 -0700   author:   Jonathan

Re: >>Maintenance Plan - backup   
Copy the command from the job step and paste it into the query editor and 
run it there. That should give you a much better error message.

-- 
Andrew J. Kelly    SQL MVP
Solid Quality Mentors


"Jonathan"  wrote in message 
news:A1ACD562-7823-4CE3-9C6C-7264CDF4FE34@microsoft.com...
> Hi, sql2005 I used the Maintenance Plan wizard to set up a daily backup 
> plan
> to run after hours. So I now have a plan and sql server agent job; both
> created by the wizard.
>
> I right-click the job and select 'Start job at step...' and an error is
> triggered. The log file viewer has the following message.
>
> Unable to start execution of step 1 (reason: line(1): Syntax error). The
> step failed.
>
> I then selected the maintenance plan and modify to view the t-sql. This I
> copied into a new query window and was able to execute successfully!
>
> However, I notice that there is a disclaimer at the bottom of the 'view
> t-sql' popup that says... the t-sql shown here may not necessarily be the
> exact t-sql executed at the server due to any conditional logic you
> configured for this task.
> - a red herring maybe?
>
> My questions is how do I resolve this error?
>
> Any ideas or suggestions appreciated :-)
>
> Many thanks,
> Jonathan
>
>
date: Wed, 24 Jun 2009 22:29:47 -0400   author:   Andrew J. Kelly

Re: >>Maintenance Plan - backup   
"Andrew J. Kelly" wrote:

> Copy the command from the job step and paste it into the query editor and 
> run it there. That should give you a much better error message.
> 
> -- 
> Andrew J. Kelly    SQL MVP
> Solid Quality Mentors
> 

Hi Andrew,

I think this is the command...

/SQL "Maintenance Plans\BackupAllDbs" /SERVER "ML350SERVER\DEVELOPMENT"  
/MAXCONCURRENT " -1 " /CHECKPOINTING OFF /SET 
"\Package\Subplan_1.Disable";false /REPORTING E

and is running as local systems account.

Jonathan

> 
> "Jonathan"  wrote in message 
> news:A1ACD562-7823-4CE3-9C6C-7264CDF4FE34@microsoft.com...
> > Hi, sql2005 I used the Maintenance Plan wizard to set up a daily backup 
> > plan
> > to run after hours. So I now have a plan and sql server agent job; both
> > created by the wizard.
> >
> > I right-click the job and select 'Start job at step...' and an error is
> > triggered. The log file viewer has the following message.
> >
> > Unable to start execution of step 1 (reason: line(1): Syntax error). The
> > step failed.
> >
> > I then selected the maintenance plan and modify to view the t-sql. This I
> > copied into a new query window and was able to execute successfully!
> >
> > However, I notice that there is a disclaimer at the bottom of the 'view
> > t-sql' popup that says... the t-sql shown here may not necessarily be the
> > exact t-sql executed at the server due to any conditional logic you
> > configured for this task.
> > - a red herring maybe?
> >
> > My questions is how do I resolve this error?
> >
> > Any ideas or suggestions appreciated :-)
> >
> > Many thanks,
> > Jonathan
> >
> > 
> 
>
date: Wed, 24 Jun 2009 19:50:19 -0700   author:   Jonathan

Re: >>Maintenance Plan - backup   
OK I should have realized that would not do any good by itself as it is a 
ssis package execution and that won't run as is. The syntax error is most 
likely in this command not the pseudo ones the wizard generated. I would 
delete the plan and try again. If that doesn't work there are tons of 
examples of how to write your own tsql backup jobs that won't have the 
issues associated with SSIS and maintenance plans in general.

-- 
Andrew J. Kelly    SQL MVP
Solid Quality Mentors


"Jonathan"  wrote in message 
news:747CF1F1-1957-490B-AFBB-E5F32F6DF02A@microsoft.com...
> "Andrew J. Kelly" wrote:
>
>> Copy the command from the job step and paste it into the query editor and
>> run it there. That should give you a much better error message.
>>
>> -- 
>> Andrew J. Kelly    SQL MVP
>> Solid Quality Mentors
>>
>
> Hi Andrew,
>
> I think this is the command...
>
> /SQL "Maintenance Plans\BackupAllDbs" /SERVER "ML350SERVER\DEVELOPMENT"
> /MAXCONCURRENT " -1 " /CHECKPOINTING OFF /SET
> "\Package\Subplan_1.Disable";false /REPORTING E
>
> and is running as local systems account.
>
> Jonathan
>
>>
>> "Jonathan"  wrote in message
>> news:A1ACD562-7823-4CE3-9C6C-7264CDF4FE34@microsoft.com...
>> > Hi, sql2005 I used the Maintenance Plan wizard to set up a daily backup
>> > plan
>> > to run after hours. So I now have a plan and sql server agent job; both
>> > created by the wizard.
>> >
>> > I right-click the job and select 'Start job at step...' and an error is
>> > triggered. The log file viewer has the following message.
>> >
>> > Unable to start execution of step 1 (reason: line(1): Syntax error). 
>> > The
>> > step failed.
>> >
>> > I then selected the maintenance plan and modify to view the t-sql. This 
>> > I
>> > copied into a new query window and was able to execute successfully!
>> >
>> > However, I notice that there is a disclaimer at the bottom of the 'view
>> > t-sql' popup that says... the t-sql shown here may not necessarily be 
>> > the
>> > exact t-sql executed at the server due to any conditional logic you
>> > configured for this task.
>> > - a red herring maybe?
>> >
>> > My questions is how do I resolve this error?
>> >
>> > Any ideas or suggestions appreciated :-)
>> >
>> > Many thanks,
>> > Jonathan
>> >
>> >
>>
>>
date: Thu, 25 Jun 2009 08:51:59 -0400   author:   Andrew J. Kelly

Re: >>Maintenance Plan - backup   
With that kind of error - it is most likely caused by a mismatch between the 
client tools and the server.  I have seen this kind of error occur when the 
maintenance plan is created on a pre-SP2 client and connecting to a SP2 or 
greater system.

I find that a lot of people don't ever bother to upgrade the client on the 
desktop - but the server has been patched to the latest version.  It 
definitely causes a lot of problems.

"Andrew J. Kelly"  wrote in message 
news:e2nW7OZ9JHA.5040@TK2MSFTNGP04.phx.gbl...
> OK I should have realized that would not do any good by itself as it is a 
> ssis package execution and that won't run as is. The syntax error is most 
> likely in this command not the pseudo ones the wizard generated. I would 
> delete the plan and try again. If that doesn't work there are tons of 
> examples of how to write your own tsql backup jobs that won't have the 
> issues associated with SSIS and maintenance plans in general.
>
> -- 
> Andrew J. Kelly    SQL MVP
> Solid Quality Mentors
>
>
> "Jonathan"  wrote in message 
> news:747CF1F1-1957-490B-AFBB-E5F32F6DF02A@microsoft.com...
>> "Andrew J. Kelly" wrote:
>>
>>> Copy the command from the job step and paste it into the query editor 
>>> and
>>> run it there. That should give you a much better error message.
>>>
>>> -- 
>>> Andrew J. Kelly    SQL MVP
>>> Solid Quality Mentors
>>>
>>
>> Hi Andrew,
>>
>> I think this is the command...
>>
>> /SQL "Maintenance Plans\BackupAllDbs" /SERVER "ML350SERVER\DEVELOPMENT"
>> /MAXCONCURRENT " -1 " /CHECKPOINTING OFF /SET
>> "\Package\Subplan_1.Disable";false /REPORTING E
>>
>> and is running as local systems account.
>>
>> Jonathan
>>
>>>
>>> "Jonathan"  wrote in message
>>> news:A1ACD562-7823-4CE3-9C6C-7264CDF4FE34@microsoft.com...
>>> > Hi, sql2005 I used the Maintenance Plan wizard to set up a daily 
>>> > backup
>>> > plan
>>> > to run after hours. So I now have a plan and sql server agent job; 
>>> > both
>>> > created by the wizard.
>>> >
>>> > I right-click the job and select 'Start job at step...' and an error 
>>> > is
>>> > triggered. The log file viewer has the following message.
>>> >
>>> > Unable to start execution of step 1 (reason: line(1): Syntax error). 
>>> > The
>>> > step failed.
>>> >
>>> > I then selected the maintenance plan and modify to view the t-sql. 
>>> > This I
>>> > copied into a new query window and was able to execute successfully!
>>> >
>>> > However, I notice that there is a disclaimer at the bottom of the 
>>> > 'view
>>> > t-sql' popup that says... the t-sql shown here may not necessarily be 
>>> > the
>>> > exact t-sql executed at the server due to any conditional logic you
>>> > configured for this task.
>>> > - a red herring maybe?
>>> >
>>> > My questions is how do I resolve this error?
>>> >
>>> > Any ideas or suggestions appreciated :-)
>>> >
>>> > Many thanks,
>>> > Jonathan
>>> >
>>> >
>>>
>>>
>
date: Thu, 25 Jun 2009 19:20:34 -0700   author:   Jeffrey Williams

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us