Showing posts with label task. Show all posts
Showing posts with label task. Show all posts

Wednesday, March 28, 2012

Manage Individual Subscriptions task problem, cannot edit email address

Hi,

The Browser role has the task Manage Individual Subscriptions. Fine, the user can create a subscription. The problem is that the reportserver populate the email address text box with the Windows User ID and does not let the user change this to put his email address instead. The text box is greyed out.

I found that to enable the text box I have to add the task Manage all subscriptions to the role "Browser".

This is a major security problem because with this setting any user can edit any subscription.

I suspect that I could work at the Active Directory level to populate a field that would in turn populate the email address with the correct data., however this is not an option for me. I have absolutely no way to do it or get it done. Does anybody has an idea on how I could allow a user to edit his email address in his subscriptions and not let him tamper with other users subscriptions?

Thanks

Philippe

Actually, you don't need to grant the Manage All Subscriptions task to the user. There is a setting called SendEmailToUserAlias in the rsreportserver.config file that you can modify to allow users to type in an email address/list of addresses. Defaul it set to True, you can set it to False to enable this field for your users.

Also, there are a couple of other settings you might want to set at that time. The DefaultHostName element determines what host is appended if only an alias is supplied. If none is specified, the mail server determines that setting (if it's an Exchange server it resolves to known mail boxes). The other one that's useful is PermittedHosts. It limits to which hosts users can send e-mails. For example, at Microsoft, we might only include microsoft.com in the list. That way reports are not sent to hotmail addresses.

-Lukasz

See below for the Email Delivery extension element.

<RSEmailDPConfiguration>
<SMTPServer></SMTPServer>
<SMTPServerPort></SMTPServerPort>
<SMTPAccountName></SMTPAccountName>
<SMTPConnectionTimeout></SMTPConnectionTimeout>
<SMTPServerPickupDirectory></SMTPServerPickupDirectory>
<SMTPUseSSL></SMTPUseSSL>
<SendUsing>2</SendUsing>
<SMTPAuthenticate></SMTPAuthenticate>
<From></From>
<EmbeddedRenderFormats>
<RenderingExtension>MHTML</RenderingExtension>
</EmbeddedRenderFormats>
<PrivilegedUserRenderFormats></PrivilegedUserRenderFormats>
<ExcludedRenderFormats>
<RenderingExtension>HTMLOWC</RenderingExtension>
<RenderingExtension>NULL</RenderingExtension>
<RenderingExtension>RGDI</RenderingExtension>
</ExcludedRenderFormats>
<SendEmailToUserAlias>True</SendEmailToUserAlias>
<DefaultHostName></DefaultHostName>
<PermittedHosts></PermittedHosts>
</RSEmailDPConfiguration>


This posting is provided "AS IS" with no warranties, and confers no rights.

|||

I followed the directions above in a current release of SSRS and it does NOT work. The only way I could get the user permission to set their own email address was to grant the Manage All Subscriptions task to the user.

I'm still testing the other two settings mentioned above.

Definitely kind of screwy when you grant the Manage Individual Subscriptions task to the user that they are unable to change the email address. And our AD situation does not allow creating email addresses corresponding to the user ID. I wonder if MS expects it to work based on Exchange integrated with AD.

Manage Individual Subscriptions task problem, cannot edit email address

Hi,

The Browser role has the task Manage Individual Subscriptions. Fine, the user can create a subscription. The problem is that the reportserver populate the email address text box with the Windows User ID and does not let the user change this to put his email address instead. The text box is greyed out.

I found that to enable the text box I have to add the task Manage all subscriptions to the role "Browser".

This is a major security problem because with this setting any user can edit any subscription.

I suspect that I could work at the Active Directory level to populate a field that would in turn populate the email address with the correct data., however this is not an option for me. I have absolutely no way to do it or get it done. Does anybody has an idea on how I could allow a user to edit his email address in his subscriptions and not let him tamper with other users subscriptions?

Thanks

Philippe

Actually, you don't need to grant the Manage All Subscriptions task to the user. There is a setting called SendEmailToUserAlias in the rsreportserver.config file that you can modify to allow users to type in an email address/list of addresses. Defaul it set to True, you can set it to False to enable this field for your users.

Also, there are a couple of other settings you might want to set at that time. The DefaultHostName element determines what host is appended if only an alias is supplied. If none is specified, the mail server determines that setting (if it's an Exchange server it resolves to known mail boxes). The other one that's useful is PermittedHosts. It limits to which hosts users can send e-mails. For example, at Microsoft, we might only include microsoft.com in the list. That way reports are not sent to hotmail addresses.

-Lukasz

See below for the Email Delivery extension element.

<RSEmailDPConfiguration>
<SMTPServer></SMTPServer>
<SMTPServerPort></SMTPServerPort>
<SMTPAccountName></SMTPAccountName>
<SMTPConnectionTimeout></SMTPConnectionTimeout>
<SMTPServerPickupDirectory></SMTPServerPickupDirectory>
<SMTPUseSSL></SMTPUseSSL>
<SendUsing>2</SendUsing>
<SMTPAuthenticate></SMTPAuthenticate>
<From></From>
<EmbeddedRenderFormats>
<RenderingExtension>MHTML</RenderingExtension>
</EmbeddedRenderFormats>
<PrivilegedUserRenderFormats></PrivilegedUserRenderFormats>
<ExcludedRenderFormats>
<RenderingExtension>HTMLOWC</RenderingExtension>
<RenderingExtension>NULL</RenderingExtension>
<RenderingExtension>RGDI</RenderingExtension>
</ExcludedRenderFormats>
<SendEmailToUserAlias>True</SendEmailToUserAlias>
<DefaultHostName></DefaultHostName>
<PermittedHosts></PermittedHosts>
</RSEmailDPConfiguration>


This posting is provided "AS IS" with no warranties, and confers no rights.

|||

I followed the directions above in a current release of SSRS and it does NOT work. The only way I could get the user permission to set their own email address was to grant the Manage All Subscriptions task to the user.

I'm still testing the other two settings mentioned above.

Definitely kind of screwy when you grant the Manage Individual Subscriptions task to the user that they are unable to change the email address. And our AD situation does not allow creating email addresses corresponding to the user ID. I wonder if MS expects it to work based on Exchange integrated with AD.

Monday, March 26, 2012

Making FTP Task retry until file shows up

If I want to download a file, but I don't know if it's available yet (actually positive it won't be available for some time), how do I make FTP Task retry/wait until file shows up in the ftp folder?You can have a loop that continues until you set a variable to a certain value to indicate success, In addition add a script task that has a line Thread.sleep(1000). That will sleep the package for 1second, you will need to add imports System.Threading to the Script task at the top. The other option is to schedule your package to run every minute or 5 minutes. This has the benefit in that you don't have a long running package which can be prone to issues or failures. In this case if the package fails thats fine because the package will just be run the next scheduled time. You do have to consider overlapping of the schedule here. You don't want two instances of the package running.

Friday, March 9, 2012

Maitenance plans and noskip

I am using SQL Server 2005. I have a Backup Database task which I use
to back up to a single backup device. I want to set a retention time
of 3 days and have old backups overwritten. This seems to be the WITH
INIT, NOSKIP problem. However using the wizard there doesn't seem to
be the possibility of doing this. I find it hard to believe though
that anyone would write a wizard which didn't offer this feature.
Is there any way to backup with NOSKIP or failing that alter the SQL
genereated by the wizard.
For info, here's the first few SQL statements from the wizard!
BACKUP DATABASE [master] TO [All299LocalDatabases] WITH RETAINDAYS =
3, NOFORMAT, INIT, NAME = N'master_backup_20070802123131', SKIP,
REWIND, NOUNLOAD, STATS = 10
GO
BACKUP DATABASE [model] TO [All299LocalDatabases] WITH RETAINDAYS =
3, NOFORMAT, NOINIT, NAME = N'model_backup_20070802123131', SKIP,
REWIND, NOUNLOAD, STATS = 10
GO
BACKUP DATABASE [msdb] TO [All299LocalDatabases] WITH RETAINDAYS =
3, NOFORMAT, NOINIT, NAME = N'msdb_backup_20070802123132', SKIP,
REWIND, NOUNLOAD, STATS = 10
GO
BACKUP DATABASE [ReportServer] TO [All299LocalDatabases] WITH
RETAINDAYS = 3, NOFORMAT, NOINIT, NAME =
N'ReportServer_backup_20070802123132', SKIP, REWIND, NOUNLOAD, STATS
= 10
GO
etc
There's no way in SQL Server to backup to a single backup device and overwrite "only the oldest"
backups. Either you overwrite everything, or you append. Period.
Now, I understand that the interaction between INIT/NOINIT and SKIP/NOSKIP can be confusing, and
that it probably why there's a section in Books Online titled "Interaction of SKIP, NOSKIP, INIT,
and NOINIT" (in the BACKUP topic). Bu, as mentioned before, SQL Server either overwrites everything
or not at all. This is how the engine work, so it doesn't relate to the maintenance wizard.
Personally,. I don't use SKIP/NOSKIP at all, as I don't find those options adding anything to
INIT/NOINIT.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
<usenet@.tynemarch.co.uk> wrote in message
news:1186054522.882732.218720@.d55g2000hsg.googlegr oups.com...
>I am using SQL Server 2005. I have a Backup Database task which I use
> to back up to a single backup device. I want to set a retention time
> of 3 days and have old backups overwritten. This seems to be the WITH
> INIT, NOSKIP problem. However using the wizard there doesn't seem to
> be the possibility of doing this. I find it hard to believe though
> that anyone would write a wizard which didn't offer this feature.
> Is there any way to backup with NOSKIP or failing that alter the SQL
> genereated by the wizard.
> For info, here's the first few SQL statements from the wizard!
> BACKUP DATABASE [master] TO [All299LocalDatabases] WITH RETAINDAYS =
> 3, NOFORMAT, INIT, NAME = N'master_backup_20070802123131', SKIP,
> REWIND, NOUNLOAD, STATS = 10
> GO
> BACKUP DATABASE [model] TO [All299LocalDatabases] WITH RETAINDAYS =
> 3, NOFORMAT, NOINIT, NAME = N'model_backup_20070802123131', SKIP,
> REWIND, NOUNLOAD, STATS = 10
> GO
> BACKUP DATABASE [msdb] TO [All299LocalDatabases] WITH RETAINDAYS =
> 3, NOFORMAT, NOINIT, NAME = N'msdb_backup_20070802123132', SKIP,
> REWIND, NOUNLOAD, STATS = 10
> GO
> BACKUP DATABASE [ReportServer] TO [All299LocalDatabases] WITH
> RETAINDAYS = 3, NOFORMAT, NOINIT, NAME =
> N'ReportServer_backup_20070802123132', SKIP, REWIND, NOUNLOAD, STATS
> = 10
> GO
> etc
>
|||I would happily overwrite everything but there doesn't seem to be that
option either in the Wizard. You only have the option that it either
expires or it doesn't as whatever you do it always puts in SKIP into
the SQL. The only way you seem to be able to backup without having old
backups is to backup to individual files rather than using a backup
device as I am.
Rob
On 2 Aug, 12:58, "Tibor Karaszi"
<tibor_please.no.email_kara...@.hotmail.nomail.com> wrote:
> There's no way in SQL Server to backup to a single backup device and overwrite "only the oldest"
> backups. Either you overwrite everything, or you append. Period.
> Now, I understand that the interaction between INIT/NOINIT and SKIP/NOSKIP can be confusing, and
> that it probably why there's a section in Books Online titled "Interaction of SKIP, NOSKIP, INIT,
> and NOINIT" (in the BACKUP topic). Bu, as mentioned before, SQL Server either overwrites everything
> or not at all. This is how the engine work, so it doesn't relate to the maintenance wizard.
> Personally,. I don't use SKIP/NOSKIP at all, as I don't find those options adding anything to
> INIT/NOINIT.
> --
> Tibor Karaszi, SQL Server MVPhttp://www.karaszi.com/sqlserver/default.asphttp://sqlblog.com/blogs/tibor_karaszi
> <use...@.tynemarch.co.uk> wrote in message
> news:1186054522.882732.218720@.d55g2000hsg.googlegr oups.com...
>
>
>
>
> - Show quoted text -
|||So what you want to do is to backup to the same backup device name and always overwrite?
In my wizard (I'm on sp2, there has been improvements here...), I see an option "If backup files
exists:" and I select "Overwrite".
Here are the backup commands executed, as catched by Profiler:
BACKUP DATABASE [master] TO [MyDevice] WITH NOFORMAT, INIT, NAME =
N'master_backup_20070802151715', SKIP, REWIND, NOUNLOAD, STATS = 10
BACKUP DATABASE [model] TO [MyDevice] WITH NOFORMAT, NOINIT, NAME =
N'model_backup_20070802151715', SKIP, REWIND, NOUNLOAD, STATS = 10
As you see, it does INIT for the first backup and NOINIT for the following backups. Is above what
you want, ir are you saying that there's some problem with the TSQL above?
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
<usenet@.tynemarch.co.uk> wrote in message
news:1186057933.490529.68270@.l70g2000hse.googlegro ups.com...
>I would happily overwrite everything but there doesn't seem to be that
> option either in the Wizard. You only have the option that it either
> expires or it doesn't as whatever you do it always puts in SKIP into
> the SQL. The only way you seem to be able to backup without having old
> backups is to backup to individual files rather than using a backup
> device as I am.
> Rob
> On 2 Aug, 12:58, "Tibor Karaszi"
> <tibor_please.no.email_kara...@.hotmail.nomail.com> wrote:
>
|||I could not get the wizard to generate any SQL with SKIP in it.
However, the answer to my problems was to use a one-off backup file
rather than have a pre-allocated backup device. I could then move to
the file to somewhere else and start afresh with a new file the next
day. Thanks for the help anyway.
On 2 Aug, 14:19, "Tibor Karaszi"
<tibor_please.no.email_kara...@.hotmail.nomail.com> wrote:
> So what you want to do is to backup to the same backup device name and always overwrite?
> In my wizard (I'm on sp2, there has been improvements here...), I see an option "If backup files
> exists:" and I select "Overwrite".
> Here are the backup commands executed, as catched by Profiler:
> BACKUP DATABASE [master] TO [MyDevice] WITH NOFORMAT, INIT, NAME =
> N'master_backup_20070802151715', SKIP, REWIND, NOUNLOAD, STATS = 10
> BACKUP DATABASE [model] TO [MyDevice] WITH NOFORMAT, NOINIT, NAME =
> N'model_backup_20070802151715', SKIP, REWIND, NOUNLOAD, STATS = 10
> As you see, it does INIT for the first backup and NOINIT for the following backups. Is above what
> you want, ir are you saying that there's some problem with the TSQL above?
> --
> Tibor Karaszi, SQL Server MVPhttp://www.karaszi.com/sqlserver/default.asphttp://sqlblog.com/blogs/tibor_karaszi
> <use...@.tynemarch.co.uk> wrote in message
> news:1186057933.490529.68270@.l70g2000hse.googlegro ups.com...
>
>
>
>
>
>
>
>
> - Show quoted text -

Maitenance plans and noskip

I am using SQL Server 2005. I have a Backup Database task which I use
to back up to a single backup device. I want to set a retention time
of 3 days and have old backups overwritten. This seems to be the WITH
INIT, NOSKIP problem. However using the wizard there doesn't seem to
be the possibility of doing this. I find it hard to believe though
that anyone would write a wizard which didn't offer this feature.
Is there any way to backup with NOSKIP or failing that alter the SQL
genereated by the wizard.
For info, here's the first few SQL statements from the wizard!
BACKUP DATABASE [master] TO [All299LocalDatabases] WITH RETAINDAYS = 3, NOFORMAT, INIT, NAME = N'master_backup_20070802123131', SKIP,
REWIND, NOUNLOAD, STATS = 10
GO
BACKUP DATABASE [model] TO [All299LocalDatabases] WITH RETAINDAYS = 3, NOFORMAT, NOINIT, NAME = N'model_backup_20070802123131', SKIP,
REWIND, NOUNLOAD, STATS = 10
GO
BACKUP DATABASE [msdb] TO [All299LocalDatabases] WITH RETAINDAYS = 3, NOFORMAT, NOINIT, NAME = N'msdb_backup_20070802123132', SKIP,
REWIND, NOUNLOAD, STATS = 10
GO
BACKUP DATABASE [ReportServer] TO [All299LocalDatabases] WITH
RETAINDAYS = 3, NOFORMAT, NOINIT, NAME = N'ReportServer_backup_20070802123132', SKIP, REWIND, NOUNLOAD, STATS
= 10
GO
etcThere's no way in SQL Server to backup to a single backup device and overwrite "only the oldest"
backups. Either you overwrite everything, or you append. Period.
Now, I understand that the interaction between INIT/NOINIT and SKIP/NOSKIP can be confusing, and
that it probably why there's a section in Books Online titled "Interaction of SKIP, NOSKIP, INIT,
and NOINIT" (in the BACKUP topic). Bu, as mentioned before, SQL Server either overwrites everything
or not at all. This is how the engine work, so it doesn't relate to the maintenance wizard.
Personally,. I don't use SKIP/NOSKIP at all, as I don't find those options adding anything to
INIT/NOINIT.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
<usenet@.tynemarch.co.uk> wrote in message
news:1186054522.882732.218720@.d55g2000hsg.googlegroups.com...
>I am using SQL Server 2005. I have a Backup Database task which I use
> to back up to a single backup device. I want to set a retention time
> of 3 days and have old backups overwritten. This seems to be the WITH
> INIT, NOSKIP problem. However using the wizard there doesn't seem to
> be the possibility of doing this. I find it hard to believe though
> that anyone would write a wizard which didn't offer this feature.
> Is there any way to backup with NOSKIP or failing that alter the SQL
> genereated by the wizard.
> For info, here's the first few SQL statements from the wizard!
> BACKUP DATABASE [master] TO [All299LocalDatabases] WITH RETAINDAYS => 3, NOFORMAT, INIT, NAME = N'master_backup_20070802123131', SKIP,
> REWIND, NOUNLOAD, STATS = 10
> GO
> BACKUP DATABASE [model] TO [All299LocalDatabases] WITH RETAINDAYS => 3, NOFORMAT, NOINIT, NAME = N'model_backup_20070802123131', SKIP,
> REWIND, NOUNLOAD, STATS = 10
> GO
> BACKUP DATABASE [msdb] TO [All299LocalDatabases] WITH RETAINDAYS => 3, NOFORMAT, NOINIT, NAME = N'msdb_backup_20070802123132', SKIP,
> REWIND, NOUNLOAD, STATS = 10
> GO
> BACKUP DATABASE [ReportServer] TO [All299LocalDatabases] WITH
> RETAINDAYS = 3, NOFORMAT, NOINIT, NAME => N'ReportServer_backup_20070802123132', SKIP, REWIND, NOUNLOAD, STATS
> = 10
> GO
> etc
>|||I would happily overwrite everything but there doesn't seem to be that
option either in the Wizard. You only have the option that it either
expires or it doesn't as whatever you do it always puts in SKIP into
the SQL. The only way you seem to be able to backup without having old
backups is to backup to individual files rather than using a backup
device as I am.
Rob
On 2 Aug, 12:58, "Tibor Karaszi"
<tibor_please.no.email_kara...@.hotmail.nomail.com> wrote:
> There's no way in SQL Server to backup to a single backup device and overwrite "only the oldest"
> backups. Either you overwrite everything, or you append. Period.
> Now, I understand that the interaction between INIT/NOINIT and SKIP/NOSKIP can be confusing, and
> that it probably why there's a section in Books Online titled "Interaction of SKIP, NOSKIP, INIT,
> and NOINIT" (in the BACKUP topic). Bu, as mentioned before, SQL Server either overwrites everything
> or not at all. This is how the engine work, so it doesn't relate to the maintenance wizard.
> Personally,. I don't use SKIP/NOSKIP at all, as I don't find those options adding anything to
> INIT/NOINIT.
> --
> Tibor Karaszi, SQL Server MVPhttp://www.karaszi.com/sqlserver/default.asphttp://sqlblog.com/blogs/tibor_karaszi
> <use...@.tynemarch.co.uk> wrote in message
> news:1186054522.882732.218720@.d55g2000hsg.googlegroups.com...
>
> >I am using SQL Server 2005. I have a Backup Database task which I use
> > to back up to a single backup device. I want to set a retention time
> > of 3 days and have old backups overwritten. This seems to be the WITH
> > INIT, NOSKIP problem. However using the wizard there doesn't seem to
> > be the possibility of doing this. I find it hard to believe though
> > that anyone would write a wizard which didn't offer this feature.
> > Is there any way to backup with NOSKIP or failing that alter the SQL
> > genereated by the wizard.
> > For info, here's the first few SQL statements from the wizard!
> > BACKUP DATABASE [master] TO [All299LocalDatabases] WITH RETAINDAYS => > 3, NOFORMAT, INIT, NAME = N'master_backup_20070802123131', SKIP,
> > REWIND, NOUNLOAD, STATS = 10
> > GO
> > BACKUP DATABASE [model] TO [All299LocalDatabases] WITH RETAINDAYS => > 3, NOFORMAT, NOINIT, NAME = N'model_backup_20070802123131', SKIP,
> > REWIND, NOUNLOAD, STATS = 10
> > GO
> > BACKUP DATABASE [msdb] TO [All299LocalDatabases] WITH RETAINDAYS => > 3, NOFORMAT, NOINIT, NAME = N'msdb_backup_20070802123132', SKIP,
> > REWIND, NOUNLOAD, STATS = 10
> > GO
> > BACKUP DATABASE [ReportServer] TO [All299LocalDatabases] WITH
> > RETAINDAYS = 3, NOFORMAT, NOINIT, NAME => > N'ReportServer_backup_20070802123132', SKIP, REWIND, NOUNLOAD, STATS
> > = 10
> > GO
> > etc- Hide quoted text -
> - Show quoted text -|||So what you want to do is to backup to the same backup device name and always overwrite?
In my wizard (I'm on sp2, there has been improvements here...), I see an option "If backup files
exists:" and I select "Overwrite".
Here are the backup commands executed, as catched by Profiler:
BACKUP DATABASE [master] TO [MyDevice] WITH NOFORMAT, INIT, NAME =N'master_backup_20070802151715', SKIP, REWIND, NOUNLOAD, STATS = 10
BACKUP DATABASE [model] TO [MyDevice] WITH NOFORMAT, NOINIT, NAME =N'model_backup_20070802151715', SKIP, REWIND, NOUNLOAD, STATS = 10
As you see, it does INIT for the first backup and NOINIT for the following backups. Is above what
you want, ir are you saying that there's some problem with the TSQL above?
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
<usenet@.tynemarch.co.uk> wrote in message
news:1186057933.490529.68270@.l70g2000hse.googlegroups.com...
>I would happily overwrite everything but there doesn't seem to be that
> option either in the Wizard. You only have the option that it either
> expires or it doesn't as whatever you do it always puts in SKIP into
> the SQL. The only way you seem to be able to backup without having old
> backups is to backup to individual files rather than using a backup
> device as I am.
> Rob
> On 2 Aug, 12:58, "Tibor Karaszi"
> <tibor_please.no.email_kara...@.hotmail.nomail.com> wrote:
>> There's no way in SQL Server to backup to a single backup device and overwrite "only the oldest"
>> backups. Either you overwrite everything, or you append. Period.
>> Now, I understand that the interaction between INIT/NOINIT and SKIP/NOSKIP can be confusing, and
>> that it probably why there's a section in Books Online titled "Interaction of SKIP, NOSKIP, INIT,
>> and NOINIT" (in the BACKUP topic). Bu, as mentioned before, SQL Server either overwrites
>> everything
>> or not at all. This is how the engine work, so it doesn't relate to the maintenance wizard.
>> Personally,. I don't use SKIP/NOSKIP at all, as I don't find those options adding anything to
>> INIT/NOINIT.
>> --
>> Tibor Karaszi, SQL Server
>> MVPhttp://www.karaszi.com/sqlserver/default.asphttp://sqlblog.com/blogs/tibor_karaszi
>> <use...@.tynemarch.co.uk> wrote in message
>> news:1186054522.882732.218720@.d55g2000hsg.googlegroups.com...
>>
>> >I am using SQL Server 2005. I have a Backup Database task which I use
>> > to back up to a single backup device. I want to set a retention time
>> > of 3 days and have old backups overwritten. This seems to be the WITH
>> > INIT, NOSKIP problem. However using the wizard there doesn't seem to
>> > be the possibility of doing this. I find it hard to believe though
>> > that anyone would write a wizard which didn't offer this feature.
>> > Is there any way to backup with NOSKIP or failing that alter the SQL
>> > genereated by the wizard.
>> > For info, here's the first few SQL statements from the wizard!
>> > BACKUP DATABASE [master] TO [All299LocalDatabases] WITH RETAINDAYS =>> > 3, NOFORMAT, INIT, NAME = N'master_backup_20070802123131', SKIP,
>> > REWIND, NOUNLOAD, STATS = 10
>> > GO
>> > BACKUP DATABASE [model] TO [All299LocalDatabases] WITH RETAINDAYS =>> > 3, NOFORMAT, NOINIT, NAME = N'model_backup_20070802123131', SKIP,
>> > REWIND, NOUNLOAD, STATS = 10
>> > GO
>> > BACKUP DATABASE [msdb] TO [All299LocalDatabases] WITH RETAINDAYS =>> > 3, NOFORMAT, NOINIT, NAME = N'msdb_backup_20070802123132', SKIP,
>> > REWIND, NOUNLOAD, STATS = 10
>> > GO
>> > BACKUP DATABASE [ReportServer] TO [All299LocalDatabases] WITH
>> > RETAINDAYS = 3, NOFORMAT, NOINIT, NAME =>> > N'ReportServer_backup_20070802123132', SKIP, REWIND, NOUNLOAD, STATS
>> > = 10
>> > GO
>> > etc- Hide quoted text -
>> - Show quoted text -
>|||I could not get the wizard to generate any SQL with SKIP in it.
However, the answer to my problems was to use a one-off backup file
rather than have a pre-allocated backup device. I could then move to
the file to somewhere else and start afresh with a new file the next
day. Thanks for the help anyway.
On 2 Aug, 14:19, "Tibor Karaszi"
<tibor_please.no.email_kara...@.hotmail.nomail.com> wrote:
> So what you want to do is to backup to the same backup device name and always overwrite?
> In my wizard (I'm on sp2, there has been improvements here...), I see an option "If backup files
> exists:" and I select "Overwrite".
> Here are the backup commands executed, as catched by Profiler:
> BACKUP DATABASE [master] TO [MyDevice] WITH NOFORMAT, INIT, NAME => N'master_backup_20070802151715', SKIP, REWIND, NOUNLOAD, STATS = 10
> BACKUP DATABASE [model] TO [MyDevice] WITH NOFORMAT, NOINIT, NAME => N'model_backup_20070802151715', SKIP, REWIND, NOUNLOAD, STATS = 10
> As you see, it does INIT for the first backup and NOINIT for the following backups. Is above what
> you want, ir are you saying that there's some problem with the TSQL above?
> --
> Tibor Karaszi, SQL Server MVPhttp://www.karaszi.com/sqlserver/default.asphttp://sqlblog.com/blogs/tibor_karaszi
> <use...@.tynemarch.co.uk> wrote in message
> news:1186057933.490529.68270@.l70g2000hse.googlegroups.com...
>
> >I would happily overwrite everything but there doesn't seem to be that
> > option either in the Wizard. You only have the option that it either
> > expires or it doesn't as whatever you do it always puts in SKIP into
> > the SQL. The only way you seem to be able to backup without having old
> > backups is to backup to individual files rather than using a backup
> > device as I am.
> > Rob
> > On 2 Aug, 12:58, "Tibor Karaszi"
> > <tibor_please.no.email_kara...@.hotmail.nomail.com> wrote:
> >> There's no way in SQL Server to backup to a single backup device and overwrite "only the oldest"
> >> backups. Either you overwrite everything, or you append. Period.
> >> Now, I understand that the interaction between INIT/NOINIT and SKIP/NOSKIP can be confusing, and
> >> that it probably why there's a section in Books Online titled "Interaction of SKIP, NOSKIP, INIT,
> >> and NOINIT" (in the BACKUP topic). Bu, as mentioned before, SQL Server either overwrites
> >> everything
> >> or not at all. This is how the engine work, so it doesn't relate to the maintenance wizard.
> >> Personally,. I don't use SKIP/NOSKIP at all, as I don't find those options adding anything to
> >> INIT/NOINIT.
> >> --
> >> Tibor Karaszi, SQL Server
> >> MVPhttp://www.karaszi.com/sqlserver/default.asphttp://sqlblog.com/blogs/...
> >> <use...@.tynemarch.co.uk> wrote in message
> >>news:1186054522.882732.218720@.d55g2000hsg.googlegroups.com...
> >> >I am using SQL Server 2005. I have a Backup Database task which I use
> >> > to back up to a single backup device. I want to set a retention time
> >> > of 3 days and have old backups overwritten. This seems to be the WITH
> >> > INIT, NOSKIP problem. However using the wizard there doesn't seem to
> >> > be the possibility of doing this. I find it hard to believe though
> >> > that anyone would write a wizard which didn't offer this feature.
> >> > Is there any way to backup with NOSKIP or failing that alter the SQL
> >> > genereated by the wizard.
> >> > For info, here's the first few SQL statements from the wizard!
> >> > BACKUP DATABASE [master] TO [All299LocalDatabases] WITH RETAINDAYS => >> > 3, NOFORMAT, INIT, NAME = N'master_backup_20070802123131', SKIP,
> >> > REWIND, NOUNLOAD, STATS = 10
> >> > GO
> >> > BACKUP DATABASE [model] TO [All299LocalDatabases] WITH RETAINDAYS => >> > 3, NOFORMAT, NOINIT, NAME = N'model_backup_20070802123131', SKIP,
> >> > REWIND, NOUNLOAD, STATS = 10
> >> > GO
> >> > BACKUP DATABASE [msdb] TO [All299LocalDatabases] WITH RETAINDAYS => >> > 3, NOFORMAT, NOINIT, NAME = N'msdb_backup_20070802123132', SKIP,
> >> > REWIND, NOUNLOAD, STATS = 10
> >> > GO
> >> > BACKUP DATABASE [ReportServer] TO [All299LocalDatabases] WITH
> >> > RETAINDAYS = 3, NOFORMAT, NOINIT, NAME => >> > N'ReportServer_backup_20070802123132', SKIP, REWIND, NOUNLOAD, STATS
> >> > = 10
> >> > GO
> >> > etc- Hide quoted text -
> >> - Show quoted text -- Hide quoted text -
> - Show quoted text -

Maitenance plans and noskip

I am using SQL Server 2005. I have a Backup Database task which I use
to back up to a single backup device. I want to set a retention time
of 3 days and have old backups overwritten. This seems to be the WITH
INIT, NOSKIP problem. However using the wizard there doesn't seem to
be the possibility of doing this. I find it hard to believe though
that anyone would write a wizard which didn't offer this feature.
Is there any way to backup with NOSKIP or failing that alter the SQL
genereated by the wizard.
For info, here's the first few SQL statements from the wizard!
BACKUP DATABASE [master] TO [All299LocalDatabases] WITH RETAINDAYS
=
3, NOFORMAT, INIT, NAME = N'master_backup_20070802123131', SKIP,
REWIND, NOUNLOAD, STATS = 10
GO
BACKUP DATABASE [model] TO [All299LocalDatabases] WITH RETAINDAYS
=
3, NOFORMAT, NOINIT, NAME = N'model_backup_20070802123131', SKIP,
REWIND, NOUNLOAD, STATS = 10
GO
BACKUP DATABASE [msdb] TO [All299LocalDatabases] WITH RETAINDAYS =
3, NOFORMAT, NOINIT, NAME = N'msdb_backup_20070802123132', SKIP,
REWIND, NOUNLOAD, STATS = 10
GO
BACKUP DATABASE [ReportServer] TO [All299LocalDatabases] WITH
RETAINDAYS = 3, NOFORMAT, NOINIT, NAME =
N'ReportServer_backup_20070802123132', SKIP, REWIND, NOUNLOAD, STATS
= 10
GO
etcThere's no way in SQL Server to backup to a single backup device and overwri
te "only the oldest"
backups. Either you overwrite everything, or you append. Period.
Now, I understand that the interaction between INIT/NOINIT and SKIP/NOSKIP c
an be confusing, and
that it probably why there's a section in Books Online titled "Interaction o
f SKIP, NOSKIP, INIT,
and NOINIT" (in the BACKUP topic). Bu, as mentioned before, SQL Server eithe
r overwrites everything
or not at all. This is how the engine work, so it doesn't relate to the main
tenance wizard.
Personally,. I don't use SKIP/NOSKIP at all, as I don't find those options a
dding anything to
INIT/NOINIT.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
<usenet@.tynemarch.co.uk> wrote in message
news:1186054522.882732.218720@.d55g2000hsg.googlegroups.com...
>I am using SQL Server 2005. I have a Backup Database task which I use
> to back up to a single backup device. I want to set a retention time
> of 3 days and have old backups overwritten. This seems to be the WITH
> INIT, NOSKIP problem. However using the wizard there doesn't seem to
> be the possibility of doing this. I find it hard to believe though
> that anyone would write a wizard which didn't offer this feature.
> Is there any way to backup with NOSKIP or failing that alter the SQL
> genereated by the wizard.
> For info, here's the first few SQL statements from the wizard!
> BACKUP DATABASE [master] TO [All299LocalDatabases] WITH RETAINDA
YS =
> 3, NOFORMAT, INIT, NAME = N'master_backup_20070802123131', SKIP,
> REWIND, NOUNLOAD, STATS = 10
> GO
> BACKUP DATABASE [model] TO [All299LocalDatabases] WITH RETAINDAY
S =
> 3, NOFORMAT, NOINIT, NAME = N'model_backup_20070802123131', SKIP,
> REWIND, NOUNLOAD, STATS = 10
> GO
> BACKUP DATABASE [msdb] TO [All299LocalDatabases] WITH RETAINDAYS
=
> 3, NOFORMAT, NOINIT, NAME = N'msdb_backup_20070802123132', SKIP,
> REWIND, NOUNLOAD, STATS = 10
> GO
> BACKUP DATABASE [ReportServer] TO [All299LocalDatabases] WITH
> RETAINDAYS = 3, NOFORMAT, NOINIT, NAME =
> N'ReportServer_backup_20070802123132', SKIP, REWIND, NOUNLOAD, STATS
> = 10
> GO
> etc
>|||I would happily overwrite everything but there doesn't seem to be that
option either in the Wizard. You only have the option that it either
expires or it doesn't as whatever you do it always puts in SKIP into
the SQL. The only way you seem to be able to backup without having old
backups is to backup to individual files rather than using a backup
device as I am.
Rob
On 2 Aug, 12:58, "Tibor Karaszi"
<tibor_please.no.email_kara...@.hotmail.nomail.com> wrote:
> There's no way in SQL Server to backup to a single backup device and overw
rite "only the oldest"
> backups. Either you overwrite everything, or you append. Period.
> Now, I understand that the interaction between INIT/NOINIT and SKIP/NOSKIP
can be confusing, and
> that it probably why there's a section in Books Online titled "Interaction
of SKIP, NOSKIP, INIT,
> and NOINIT" (in the BACKUP topic). Bu, as mentioned before, SQL Server eit
her overwrites everything
> or not at all. This is how the engine work, so it doesn't relate to the ma
intenance wizard.
> Personally,. I don't use SKIP/NOSKIP at all, as I don't find those options
adding anything to
> INIT/NOINIT.
> --
> Tibor Karaszi, SQL Server MVPhttp://www.karaszi.com/sqlserver/default.asph
ttp://sqlblog.com/blogs/tibor_karaszi
> <use...@.tynemarch.co.uk> wrote in message
> news:1186054522.882732.218720@.d55g2000hsg.googlegroups.com...
>
>
>
>
>
>
> - Show quoted text -|||So what you want to do is to backup to the same backup device name and alway
s overwrite?
In my wizard (I'm on sp2, there has been improvements here...), I see an opt
ion "If backup files
exists:" and I select "Overwrite".
Here are the backup commands executed, as catched by Profiler:
BACKUP DATABASE [master] TO [MyDevice] WITH NOFORMAT, INIT, NAME =
N'master_backup_20070802151715', SKIP, REWIND, NOUNLOAD, STATS = 10
BACKUP DATABASE [model] TO [MyDevice] WITH NOFORMAT, NOINIT, NAME
=
N'model_backup_20070802151715', SKIP, REWIND, NOUNLOAD, STATS = 10
As you see, it does INIT for the first backup and NOINIT for the following b
ackups. Is above what
you want, ir are you saying that there's some problem with the TSQL above?
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
<usenet@.tynemarch.co.uk> wrote in message
news:1186057933.490529.68270@.l70g2000hse.googlegroups.com...
>I would happily overwrite everything but there doesn't seem to be that
> option either in the Wizard. You only have the option that it either
> expires or it doesn't as whatever you do it always puts in SKIP into
> the SQL. The only way you seem to be able to backup without having old
> backups is to backup to individual files rather than using a backup
> device as I am.
> Rob
> On 2 Aug, 12:58, "Tibor Karaszi"
> <tibor_please.no.email_kara...@.hotmail.nomail.com> wrote:
>|||I could not get the wizard to generate any SQL with SKIP in it.
However, the answer to my problems was to use a one-off backup file
rather than have a pre-allocated backup device. I could then move to
the file to somewhere else and start afresh with a new file the next
day. Thanks for the help anyway.
On 2 Aug, 14:19, "Tibor Karaszi"
<tibor_please.no.email_kara...@.hotmail.nomail.com> wrote:
> So what you want to do is to backup to the same backup device name and alw
ays overwrite?
> In my wizard (I'm on sp2, there has been improvements here...), I see an o
ption "If backup files
> exists:" and I select "Overwrite".
> Here are the backup commands executed, as catched by Profiler:
> BACKUP DATABASE [master] TO [MyDevice] WITH NOFORMAT, INIT, NAME
=
> N'master_backup_20070802151715', SKIP, REWIND, NOUNLOAD, STATS = 10
> BACKUP DATABASE [model] TO [MyDevice] WITH NOFORMAT, NOINIT, NAM
E =
> N'model_backup_20070802151715', SKIP, REWIND, NOUNLOAD, STATS = 10
> As you see, it does INIT for the first backup and NOINIT for the following
backups. Is above what
> you want, ir are you saying that there's some problem with the TSQL above?
> --
> Tibor Karaszi, SQL Server MVPhttp://www.karaszi.com/sqlserver/default.asph
ttp://sqlblog.com/blogs/tibor_karaszi
> <use...@.tynemarch.co.uk> wrote in message
> news:1186057933.490529.68270@.l70g2000hse.googlegroups.com...
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> - Show quoted text -

Maintinace Plan 2005

I have created a DB mantiance plan for SQL 2005 had no luck setuping diffren
t
schudle for diffirent task in the same DB manitance plan .
e.g: Daily backup for the Full Backup
Houly backup for the trx log
As we used to do in sql2000
any help please
Thanks,
RagaeiYou can't. You need multiple plans for that. Now each plan is a complete
package due to the work flow. Where as before it created different jobs for
each section of the plan.
Andrew J. Kelly SQL MVP
"RS" <RS@.discussions.microsoft.com> wrote in message
news:9B2554CB-5051-4BF7-92DF-86F59D300251@.microsoft.com...
>I have created a DB mantiance plan for SQL 2005 had no luck setuping
>diffrent
> schudle for diffirent task in the same DB manitance plan .
> e.g: Daily backup for the Full Backup
> Houly backup for the trx log
> As we used to do in sql2000
> any help please
> Thanks,
> Ragaei
>

Maintinace Plan 2005

I have created a DB mantiance plan for SQL 2005 had no luck setuping diffrent
schudle for diffirent task in the same DB manitance plan .
e.g: Daily backup for the Full Backup
Houly backup for the trx log
As we used to do in sql2000
any help please
Thanks,
RagaeiYou can't. You need multiple plans for that. Now each plan is a complete
package due to the work flow. Where as before it created different jobs for
each section of the plan.
--
Andrew J. Kelly SQL MVP
"RS" <RS@.discussions.microsoft.com> wrote in message
news:9B2554CB-5051-4BF7-92DF-86F59D300251@.microsoft.com...
>I have created a DB mantiance plan for SQL 2005 had no luck setuping
>diffrent
> schudle for diffirent task in the same DB manitance plan .
> e.g: Daily backup for the Full Backup
> Houly backup for the trx log
> As we used to do in sql2000
> any help please
> Thanks,
> Ragaei
>

Wednesday, March 7, 2012

MaintenancePlan - task order

Hello,
I created one maintenance plan with one schedule, it includes several
tasks. How I can change order on with they are executed, graphical
moving task didn't change order.
--
Best regardsYou have lines with arrows between the tasks. They define the flow. Remove your current lines (the
one you need to re-arrange) and draw new lines, to your liking.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
<anxcomp@.gmail.com> wrote in message news:1194381069.963177.83560@.50g2000hsm.googlegroups.com...
> Hello,
> I created one maintenance plan with one schedule, it includes several
> tasks. How I can change order on with they are executed, graphical
> moving task didn't change order.
> --
> Best regards
>|||Hello Tibor :)
> You have lines with arrows between the tasks. They define the flow. Remove your current lines (the
> one you need to re-arrange) and draw new lines, to your liking.
Are you sure this working, I tray arrange flow between the tasks use
lines, but logs show me that tasks are executed on different order.
--
Best regards|||Yes, it should work. I can't say why it isn't working for you, except for guesses like your not
editing the correct package... Sorry :-(
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
<anxcomp@.gmail.com> wrote in message news:1194388800.134252.68680@.o38g2000hse.googlegroups.com...
> Hello Tibor :)
>> You have lines with arrows between the tasks. They define the flow. Remove your current lines
>> (the
>> one you need to re-arrange) and draw new lines, to your liking.
> Are you sure this working, I tray arrange flow between the tasks use
> lines, but logs show me that tasks are executed on different order.
> --
> Best regards
>
>|||You are right, it is working. Sorry and thanks, my mistake. I looked
at order on log files. SQL Server wrote on wrong order, but when I
looked at individual start and stop date for each tasks, everything is
on right order.
Thank for your help.
--
Regards,
anxcomp|||Glad you got it working.. :-)
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
<anxcomp@.gmail.com> wrote in message news:1194459342.715819.182790@.d55g2000hsg.googlegroups.com...
> You are right, it is working. Sorry and thanks, my mistake. I looked
> at order on log files. SQL Server wrote on wrong order, but when I
> looked at individual start and stop date for each tasks, everything is
> on right order.
> Thank for your help.
> --
> Regards,
> anxcomp
>

Maintenance plans: online rebuilding of indexes...

I'm using SQL Server 2005 SP1 Standard.

On the Rebuild Index Task there is a checkbox at the bottom that says 'Keep index online while reindexing'.

Great I thought, I'll check that.

Later, when I tested the job, I got this error:

'Online index operations can only be performed in Enterprise edition of SQL Server.'

Why have that checkbox available to check, if I'm running a version that doesn't allow it? Where's the bug?

Thanks

Ed

I've entered a bug in our tracking database.

Thanks,

Mark

Maintenance Plans Cleanup Task does not delete files

Hello,

I've created a Maintenance Plan with a Backup Task and a Cleanup Task. The Backup task works fine, but not the cleanup task.

When I execute the maintenant plan, there's none error message but the old backup files aren't deleted.

Could you help me please?

Thanks

I was a bit puzzled by this as well, but then i read the help file:

Backup and restore history

Retaining records of when recent backups were created can help SQL Server create a recovery plan when you want to restore a database. The retention period should be at least the frequency of full database back ups.

SQL Server Agent Job history

This history can help you troubleshoot failed jobs, or determine why database actions occurred.

Maintenance plan history

This history can help you troubleshoot failed maintenance plan jobs, or determine why database actions occurred.

So it actually makes a lot of sence that the back-up itself is not deleted, only the information in the database that says the back-up was made.

|||

You may be running into the below issue.

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=336728&SiteID=1

Backup task supports subfolder but cleanup task did not in RTM. This is addressed in SP1.

Let me know if this is not the issue you are running into.

Gops Dwarak

|||

Oops,

Maintenance Clean-up Task != History Clean-up Task

My bad....

Saturday, February 25, 2012

Maintenance Plans - Cannot add subplans - no option/ task to select

I am trying to create new maintenance plans to mirror sql 2000 plans. Trying to add a subplan but i have no option to add or even name a subplan, the task is missing from the toolbox, can anyone help?

Books online states;

.....

    The Toolbox opens, and the <Maintenance Plan Name> [Design] surface opens with the default Subplan_1created. Optionally enter a description for the entire plan on the Design tab.

    Double-click Subplan_1, and enter a name and description for the subplan in the Subplan Properties dialog box. Click the Subplan Schedule icon to enter schedule details in the Job Schedule Properties dialog box

...but when i do create a new plan, there is nothign stating 'subplan_1' ...

M

Hi dems01,

The ability to add subplans was added in SP2, and the UI that Books Online refers to is available starting in SP2. Are you running the SQL 2005 SP2 version of the tools?

Also, if you're migrating SQL 2000 plans, have you tried using the upgrade wizard to automatically recreate these plans in the SQL 2005 format? You can see the legacy SQL 2000 plans in Management Studio, under the Management -> Legacy -> Database Maintenance Plans folder. This folder shows you the SQL 2000 plans that were on this server when you upgraded it to SQL 2005. If you right-click on these plans, there is an option to upgrade the plan. This will create a new SQL 2005 plan that mirrors what the SQL 2000 plan did, leaving the SQL 2000 plan itself untouched. If you use this feature, please do install the SP2 version of the tools so that the migrated plan gets the subplan support.

Hope this helps,

James [MSFT]

|||

Thanks James, the server had SP2 applied, but my local tools were still on SP1, installed and it all works now.. well the plan design screen freezes quite a lot for no reason, but at least i can add subplans now.

Thanks again

M

Maintenance Plans - Cannot add subplans - no option/ task to select

I am trying to create new maintenance plans to mirror sql 2000 plans. Trying to add a subplan but i have no option to add or even name a subplan, the task is missing from the toolbox, can anyone help?

Books online states;

.....

    The Toolbox opens, and the <Maintenance Plan Name> [Design] surface opens with the default Subplan_1created. Optionally enter a description for the entire plan on the Design tab.

    Double-click Subplan_1, and enter a name and description for the subplan in the Subplan Properties dialog box. Click the Subplan Schedule icon to enter schedule details in the Job Schedule Properties dialog box

...but when i do create a new plan, there is nothign stating 'subplan_1' ...

M

Hi dems01,

The ability to add subplans was added in SP2, and the UI that Books Online refers to is available starting in SP2. Are you running the SQL 2005 SP2 version of the tools?

Also, if you're migrating SQL 2000 plans, have you tried using the upgrade wizard to automatically recreate these plans in the SQL 2005 format? You can see the legacy SQL 2000 plans in Management Studio, under the Management -> Legacy -> Database Maintenance Plans folder. This folder shows you the SQL 2000 plans that were on this server when you upgraded it to SQL 2005. If you right-click on these plans, there is an option to upgrade the plan. This will create a new SQL 2005 plan that mirrors what the SQL 2000 plan did, leaving the SQL 2000 plan itself untouched. If you use this feature, please do install the SP2 version of the tools so that the migrated plan gets the subplan support.

Hope this helps,

James [MSFT]

|||

Thanks James, the server had SP2 applied, but my local tools were still on SP1, installed and it all works now.. well the plan design screen freezes quite a lot for no reason, but at least i can add subplans now.

Thanks again

M

Monday, February 20, 2012

Maintenance Plan: Backup Database Task (Backup Transaction Log opt

Hello.
I have an issue making transaction logs backups with the Backup Database
Task within a Maintenance Plan.
(1) When I check the option to backup trn logs of all users databases, all
databases or any selection, then save the subplan and reopen the task
properties and this selection is lost. That is to say, the option
Databases(to backup) is set again to <Select one or more>
(2)When I execute the plan, it fails with an error saying something like "it
can't make backup of a bd with simple model recovery option" (if there was
one like that in the server).
It's supposed that in the selection of databases in this task I don′t selec
t
any database with that option(in addition, it doesn't let you do that
logically), but I think the reason for the error is that the selection of
databases isn't saved (see 1).
(3) It also fails when the plan is created and executing ok, and I create a
new database. Then the next execution fails until I make a TRN Log backup of
the new database manually. After that, next plan execution runs ok.
The error in this case is: "Failed-1073548784)". I think It could be also
due to (1).
Can anybody help me? Is an error in Maintenanced plans with Sp2?
By the way, Sql version is SP2.
Then plan has been created with "new plan option" -> add "Backup database
task"
(without wizard)
Thanks, JuanSa.Hi
"JuanSa" wrote:

> Hello.
> I have an issue making transaction logs backups with the Backup Database
> Task within a Maintenance Plan.
> (1) When I check the option to backup trn logs of all users databases, all
> databases or any selection, then save the subplan and reopen the task
> properties and this selection is lost. That is to say, the option
> Databases(to backup) is set again to <Select one or more>
I have run through this and when re-editing the plan it does seem to "loose"
the selected databases, also when you re-select the databases the destinatio
n
files are changed back to one per database. You don't need to enter the drop
down list for this to happen, just changing the overwrite/append option seem
s
to do this. it does not seem to happen with Full backups.

> (2)When I execute the plan, it fails with an error saying something like "
it
> can't make backup of a bd with simple model recovery option" (if there was
> one like that in the server).
> It's supposed that in the selection of databases in this task I don′t sel
ect
> any database with that option(in addition, it doesn't let you do that
> logically), but I think the reason for the error is that the selection of
> databases isn't saved (see 1).
Simple recovery mode databases are not listed in the selectable database
when you choose transaction logs. They should be ignored for the other
options as well!

> (3) It also fails when the plan is created and executing ok, and I create
a
> new database. Then the next execution fails until I make a TRN Log backup
of
> the new database manually. After that, next plan execution runs ok.
> The error in this case is: "Failed-1073548784)". I think It could be als
o
> due to (1).
You would expect an error for a transaction log backup if there was not a
full backup previously. This would occur for the all databases/all user
databases option but not the specifically selected databases unless you add
it to the list.

> Can anybody help me? Is an error in Maintenanced plans with Sp2?
> By the way, Sql version is SP2.
> Then plan has been created with "new plan option" -> add "Backup database
> task"
> (without wizard)
>
I used the add maintenance plan option under maintenance plans, but it
results in the same thing! BI studio also seems to do the same, if you just
go into the plan and choose the View SQL it comes up with no statements.

> Thanks, JuanSa.
>
You could call PSS
https://support.microsoft.com/oas/d...508&gprid=2855&
or log a fault at https://connect.microsoft.com/SQLServer/feedback (if you
do this post the number)
Alternatively you could use the view SQL option to save the SQL that will be
run and create a job of your own which will do this.
John|||The FeedbackID is 262295
https://connect.microsoft.com/SQLSe...=2622
95|||On May 13, 4:22 am, John Bell <jbellnewspo...@.hotmail.com> wrote:
> Hi
> "JuanSa" wrote:
>
>
all[vbcol=seagreen]
> I have run through this and when re-editing theplanit does seem to "loose"
> the selected databases, also when you re-select the databases the destina=
tion
> files are changed back to one per database. You don't need to enter the d=
rop
> down list for this to happen, just changing the overwrite/append option s=
eems
> to do this. it does not seem to happen with Full backups.
>
>
"it[vbcol=seagreen]
was[vbcol=seagreen]
elect[vbcol=seagreen]
> Simple recovery mode databases are not listed in the selectable database
> when you choose transaction logs. They should be ignored for the other
> options as well!
>
>
a[vbcol=seagreen]
up of[vbcol=seagreen]
>
also[vbcol=seagreen]
> You would expect an error for a transaction log backup if there was not a
> full backup previously. This would occur for the all databases/all user
> databases option but not the specifically selected databases unless you a=
dd
> it to the list.
>
>
> I used the addmaintenanceplanoption undermaintenanceplans, but it
> results in the same thing! BI studio also seems to do the same, if you ju=
st
> go into theplanand choose the View SQL it comes up with no statements.
>
> You could call PSShttps://support.microsoft.com/oas/default.aspx?&c1=3D50=
8&gprid=3D2855&
> or log a fault athttps://connect.microsoft.com/SQLServer/feedback(if you
> do this post the number)
> Alternatively you could use the view SQL option to save the SQL that will=
be
> run and create a job of your own which will do this.
> John

Maintenance Plan: Backup Database Task (Backup Transaction Log opt

Hello.
I have an issue making transaction logs backups with the Backup Database
Task within a Maintenance Plan.
(1) When I check the option to backup trn logs of all users databases, all
databases or any selection, then save the subplan and reopen the task
properties and this selection is lost. That is to say, the option
Databases(to backup) is set again to <Select one or more>
(2)When I execute the plan, it fails with an error saying something like "it
can't make backup of a bd with simple model recovery option" (if there was
one like that in the server).
It's supposed that in the selection of databases in this task I don´t select
any database with that option(in addition, it doesn't let you do that
logically), but I think the reason for the error is that the selection of
databases isn't saved (see 1).
(3) It also fails when the plan is created and executing ok, and I create a
new database. Then the next execution fails until I make a TRN Log backup of
the new database manually. After that, next plan execution runs ok.
The error in this case is: "Failed:(-1073548784)". I think It could be also
due to (1).
Can anybody help me? Is an error in Maintenanced plans with Sp2?
By the way, Sql version is SP2.
Then plan has been created with "new plan option" -> add "Backup database
task"
(without wizard)
Thanks, JuanSa.Hi
"JuanSa" wrote:
> Hello.
> I have an issue making transaction logs backups with the Backup Database
> Task within a Maintenance Plan.
> (1) When I check the option to backup trn logs of all users databases, all
> databases or any selection, then save the subplan and reopen the task
> properties and this selection is lost. That is to say, the option
> Databases(to backup) is set again to <Select one or more>
I have run through this and when re-editing the plan it does seem to "loose"
the selected databases, also when you re-select the databases the destination
files are changed back to one per database. You don't need to enter the drop
down list for this to happen, just changing the overwrite/append option seems
to do this. it does not seem to happen with Full backups.
> (2)When I execute the plan, it fails with an error saying something like "it
> can't make backup of a bd with simple model recovery option" (if there was
> one like that in the server).
> It's supposed that in the selection of databases in this task I don´t select
> any database with that option(in addition, it doesn't let you do that
> logically), but I think the reason for the error is that the selection of
> databases isn't saved (see 1).
Simple recovery mode databases are not listed in the selectable database
when you choose transaction logs. They should be ignored for the other
options as well!
> (3) It also fails when the plan is created and executing ok, and I create a
> new database. Then the next execution fails until I make a TRN Log backup of
> the new database manually. After that, next plan execution runs ok.
> The error in this case is: "Failed:(-1073548784)". I think It could be also
> due to (1).
You would expect an error for a transaction log backup if there was not a
full backup previously. This would occur for the all databases/all user
databases option but not the specifically selected databases unless you add
it to the list.
> Can anybody help me? Is an error in Maintenanced plans with Sp2?
> By the way, Sql version is SP2.
> Then plan has been created with "new plan option" -> add "Backup database
> task"
> (without wizard)
>
I used the add maintenance plan option under maintenance plans, but it
results in the same thing! BI studio also seems to do the same, if you just
go into the plan and choose the View SQL it comes up with no statements.
> Thanks, JuanSa.
>
You could call PSS
https://support.microsoft.com/oas/default.aspx?&c1=508&gprid=2855&
or log a fault at https://connect.microsoft.com/SQLServer/feedback (if you
do this post the number)
Alternatively you could use the view SQL option to save the SQL that will be
run and create a job of your own which will do this.
John|||On May 13, 4:22 am, John Bell <jbellnewspo...@.hotmail.com> wrote:
> Hi
> "JuanSa" wrote:
> > Hello.
> > I have an issue making transaction logs backups with the Backup Database
> > Task within aMaintenancePlan.
> > (1) When I check the option to backup trn logs of all users databases, =all
> > databases or anyselection, then save the subplan and reopen the task
> > properties and thisselectionis lost. That is to say, the option
> > Databases(to backup) is set again to <Select one or more>
> I have run through this and when re-editing theplanit does seem to "loose"
> the selected databases, also when you re-select the databases the destina=tion
> files are changed back to one per database. You don't need to enter the d=rop
> down list for this to happen, just changing the overwrite/append option s=eems
> to do this. it does not seem to happen with Full backups.
>
> > (2)When I execute theplan, it fails with an error saying something like= "it
> > can't make backup of a bd with simple model recovery option" (if there =was
> > one like that in the server).
> > It's supposed that in theselectionof databases in this task I don=B4t s=elect
> > any database with that option(in addition, it doesn't let you do that
> > logically), but I think the reason for the error is that theselectionof
> > databases isn't saved (see 1).
> Simple recovery mode databases are not listed in the selectable database
> when you choose transaction logs. They should be ignored for the other
> options as well!
>
> > (3) It also fails when theplanis created and executing ok, and I create= a
> > new database. Then the next execution fails until I make a TRN Log back=up of
> > the new database manually. After that, nextplanexecution runs ok.
> > The error in this case is: "Failed:(-1073548784)". I think It could be =also
> > due to (1).
> You would expect an error for a transaction log backup if there was not a
> full backup previously. This would occur for the all databases/all user
> databases option but not the specifically selected databases unless you a=dd
> it to the list.
> > Can anybody help me? Is an error in Maintenanced plans with Sp2?
> > By the way, Sql version is SP2.
> > Thenplanhas been created with "newplanoption" -> add "Backup database
> > task"
> > (without wizard)
> I used the addmaintenanceplanoption undermaintenanceplans, but it
> results in the same thing! BI studio also seems to do the same, if you ju=st
> go into theplanand choose the View SQL it comes up with no statements.
> > Thanks, JuanSa.
> You could call PSShttps://support.microsoft.com/oas/default.aspx?&c1=3D50=8&gprid=3D2855&
> or log a fault athttps://connect.microsoft.com/SQLServer/feedback(if you
> do this post the number)
> Alternatively you could use the view SQL option to save the SQL that will= be
> run and create a job of your own which will do this.
> John|||The FeedbackID is 262295
https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=262295

Maintenance Plan: Backup Database Task (Backup Transaction Log opt

Hello.
I have an issue making transaction logs backups with the Backup Database
Task within a Maintenance Plan.
(1) When I check the option to backup trn logs of all users databases, all
databases or any selection, then save the subplan and reopen the task
properties and this selection is lost. That is to say, the option
Databases(to backup) is set again to <Select one or more>
(2)When I execute the plan, it fails with an error saying something like "it
can't make backup of a bd with simple model recovery option" (if there was
one like that in the server).
It's supposed that in the selection of databases in this task I don′t select
any database with that option(in addition, it doesn't let you do that
logically), but I think the reason for the error is that the selection of
databases isn't saved (see 1).
(3) It also fails when the plan is created and executing ok, and I create a
new database. Then the next execution fails until I make a TRN Log backup of
the new database manually. After that, next plan execution runs ok.
The error in this case is: "Failed-1073548784)". I think It could be also
due to (1).
Can anybody help me? Is an error in Maintenanced plans with Sp2?
By the way, Sql version is SP2.
Then plan has been created with "new plan option" -> add "Backup database
task"
(without wizard)
Thanks, JuanSa.
Hi
"JuanSa" wrote:

> Hello.
> I have an issue making transaction logs backups with the Backup Database
> Task within a Maintenance Plan.
> (1) When I check the option to backup trn logs of all users databases, all
> databases or any selection, then save the subplan and reopen the task
> properties and this selection is lost. That is to say, the option
> Databases(to backup) is set again to <Select one or more>
I have run through this and when re-editing the plan it does seem to "loose"
the selected databases, also when you re-select the databases the destination
files are changed back to one per database. You don't need to enter the drop
down list for this to happen, just changing the overwrite/append option seems
to do this. it does not seem to happen with Full backups.

> (2)When I execute the plan, it fails with an error saying something like "it
> can't make backup of a bd with simple model recovery option" (if there was
> one like that in the server).
> It's supposed that in the selection of databases in this task I don′t select
> any database with that option(in addition, it doesn't let you do that
> logically), but I think the reason for the error is that the selection of
> databases isn't saved (see 1).
Simple recovery mode databases are not listed in the selectable database
when you choose transaction logs. They should be ignored for the other
options as well!

> (3) It also fails when the plan is created and executing ok, and I create a
> new database. Then the next execution fails until I make a TRN Log backup of
> the new database manually. After that, next plan execution runs ok.
> The error in this case is: "Failed-1073548784)". I think It could be also
> due to (1).
You would expect an error for a transaction log backup if there was not a
full backup previously. This would occur for the all databases/all user
databases option but not the specifically selected databases unless you add
it to the list.

> Can anybody help me? Is an error in Maintenanced plans with Sp2?
> By the way, Sql version is SP2.
> Then plan has been created with "new plan option" -> add "Backup database
> task"
> (without wizard)
>
I used the add maintenance plan option under maintenance plans, but it
results in the same thing! BI studio also seems to do the same, if you just
go into the plan and choose the View SQL it comes up with no statements.

> Thanks, JuanSa.
>
You could call PSS
https://support.microsoft.com/oas/default.aspx?&c1=508&gprid=2855&
or log a fault at https://connect.microsoft.com/SQLServer/feedback (if you
do this post the number)
Alternatively you could use the view SQL option to save the SQL that will be
run and create a job of your own which will do this.
John
|||The FeedbackID is 262295
https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=262295
|||On May 13, 4:22 am, John Bell <jbellnewspo...@.hotmail.com> wrote:
> Hi
> "JuanSa" wrote:
>
> I have run through this and when re-editing theplanit does seem to "loose"
> the selected databases, also when you re-select the databases the destination
> files are changed back to one per database. You don't need to enter the drop
> down list for this to happen, just changing the overwrite/append option seems
> to do this. it does not seem to happen with Full backups.
>
>
> Simple recovery mode databases are not listed in the selectable database
> when you choose transaction logs. They should be ignored for the other
> options as well!
>
>
> You would expect an error for a transaction log backup if there was not a
> full backup previously. This would occur for the all databases/all user
> databases option but not the specifically selected databases unless you add
> it to the list.
>
> I used the addmaintenanceplanoption undermaintenanceplans, but it
> results in the same thing! BI studio also seems to do the same, if you just
> go into theplanand choose the View SQL it comes up with no statements.
>
> You could call PSShttps://support.microsoft.com/oas/default.aspx?&c1=508&gprid=2855&
> or log a fault athttps://connect.microsoft.com/SQLServer/feedback(if you
> do this post the number)
> Alternatively you could use the view SQL option to save the SQL that willbe
> run and create a job of your own which will do this.
> John

Maintenance Plan Tasks In SSIS(Sql 2005)

I am finding difficult to set Expression Property "SelectedDatabases" in Check Databases Integrity Task in SSIS.

I keep getting error:

TITLE: Expression Builder

Expression cannot be evaluated.


ADDITIONAL INFORMATION:

The data type of variable "User::varDataset" is not supported in an expression.

Reading the variable "User::varDataset" failed with error code 0xC00470D0.

(Microsoft.DataTransformationServices.Controls)

I need the flexibilty to be able to control the Task behaviour during runtime through Variables.

Any suggestions .... or even a different approach will be helpful..

cheers

aigbor

Hi Aigbor

I encountered a similar problem when using the Shrink Database Task and decided to use Execute SQL Task with an expression instead.

You might find the execute sql task with the DBCC CHECKDB command to be more useful.

Maintenance Plan Tasks In SSIS(Sql 2005)

I am finding difficult to set Expression Property "SelectedDatabases" in Check Databases Integrity Task in SSIS.

I keep getting error:

TITLE: Expression Builder

Expression cannot be evaluated.


ADDITIONAL INFORMATION:

The data type of variable "User::varDataset" is not supported in an expression.

Reading the variable "User::varDataset" failed with error code 0xC00470D0.

(Microsoft.DataTransformationServices.Controls)

I need the flexibilty to be able to control the Task behaviour during runtime through Variables.

Any suggestions .... or even a different approach will be helpful..

cheers

aigbor

Hi Aigbor

I encountered a similar problem when using the Shrink Database Task and decided to use Execute SQL Task with an expression instead.

You might find the execute sql task with the DBCC CHECKDB command to be more useful.