Showing posts with label possibilities. Show all posts
Showing posts with label possibilities. Show all posts

Monday, March 26, 2012

Scheduling a job containing a DTS package on Sql server 2000

I've tried several different possibilities but don't have enough basic
understanding of the ownerships and permissions that are involved so
I'm looking for someone to explain what is required:

I created a DTS package that includes a drop table, create table, and
data transformation task. Originally, my owner was local to the pc
workstation with administrator priveleges. When I executed the
package on demand (manually, not scheduled), it runs just fine. No
errors. When I schedule the package to run at a scheduled day/time,
it fails with an access is denied message.

I originally was using the sql admin user and password in the
connection but the view job history kept referencing "Executed as
user: sqlservername\SYSTEM..." and errored with an access is denied
message. Where did it get the SYSTEM user from since my connection
used the sql admin user in my DTS package? Do I need to determine how
to get the sql admin user or should the SYSTEM user really have to run
this scheduled job? How do I get the sql admin user to show as the
"executed as user"?

I created another admin user to see if it had someone to do with the
sql admin account but I got similar results. I tried creating the
package as an NT domain user but got similar results.

I'm sure it has something to do with permissions and ownerships but I
really don't have a clear understanding of how it was intended to
work.

Any advise you can give is greatly appreciated. I've read alot of
postings and I'm still not clear on the requirements."ano1optimist" <ano1optimist@.aol.com> wrote in message
news:253240f3.0308222018.3fdc0579@.posting.google.c om...
> I've tried several different possibilities but don't have enough basic
> understanding of the ownerships and permissions that are involved so
> I'm looking for someone to explain what is required:
> I created a DTS package that includes a drop table, create table, and
> data transformation task. Originally, my owner was local to the pc
> workstation with administrator priveleges. When I executed the
> package on demand (manually, not scheduled), it runs just fine. No
> errors. When I schedule the package to run at a scheduled day/time,
> it fails with an access is denied message.
> I originally was using the sql admin user and password in the
> connection but the view job history kept referencing "Executed as
> user: sqlservername\SYSTEM..." and errored with an access is denied
> message. Where did it get the SYSTEM user from since my connection
> used the sql admin user in my DTS package? Do I need to determine how
> to get the sql admin user or should the SYSTEM user really have to run
> this scheduled job? How do I get the sql admin user to show as the
> "executed as user"?
> I created another admin user to see if it had someone to do with the
> sql admin account but I got similar results. I tried creating the
> package as an NT domain user but got similar results.
> I'm sure it has something to do with permissions and ownerships but I
> really don't have a clear understanding of how it was intended to
> work.
> Any advise you can give is greatly appreciated. I've read alot of
> postings and I'm still not clear on the requirements.|||<snip
Oops, I meant to paste this:

This KB article covers this issue in detail:

http://support.microsoft.com/?kbid=269074

Simon

Friday, March 9, 2012

Scheduled backup in SQL Server 2005 Express

SQL Server 2005 Express does not have any possibilities to schedule backup so
I have made a simple application for scheduling backup, running a stored
procedure in my database.
The procedure backup up to the same backup device so all backup sets are
stored in the same file. RETAINDAYS is set to 365.
In the “Restore Database” dialog in SQL Server 2005 Management Studio
Express I can se all backup sets in the backup file and also the ‘Expiration’
date for each backup set.
I thought that setting option INIT and NOSKIP would overwrite expired backup
sets but instead I get an error message “the medium on device <device>
expires on <date> and cannot be overwritten.
I though that new backup sets would be appended until a backup set expires
but it does not look like that.
Any suggestion on how to preserve backup sets for some days and then
overwrite it?
Help is appreciated.
Regards Kjell Arne Johansen
Hi
What I would do If I were you :-))))) just create .BAK file with GEDDATE()
contacinated , so later on you can delete those files based on file name.
"Kjell Arne Johansen" <KjellArneJohansen@.discussions.microsoft.com> wrote in
message news:6594778E-E17A-4304-AFB1-DFF2D0C8BFD6@.microsoft.com...
> SQL Server 2005 Express does not have any possibilities to schedule backup
> so
> I have made a simple application for scheduling backup, running a stored
> procedure in my database.
> The procedure backup up to the same backup device so all backup sets are
> stored in the same file. RETAINDAYS is set to 365.
> In the Restore Database dialog in SQL Server 2005 Management Studio
> Express I can se all backup sets in the backup file and also the
> Expiration
> date for each backup set.
> I thought that setting option INIT and NOSKIP would overwrite expired
> backup
> sets but instead I get an error message the medium on device <device>
> expires on <date> and cannot be overwritten.
> I though that new backup sets would be appended until a backup set expires
> but it does not look like that.
> Any suggestion on how to preserve backup sets for some days and then
> overwrite it?
> Help is appreciated.
> Regards Kjell Arne Johansen
>
|||Hi
Yes I have an option to create backup with unique filenames also but I want
to know if there is anything I can use in SQL Server to do this for me and if
INIT and NOSKIP or other options can be used.
Kjell Arne
"Uri Dimant" wrote:

> Hi
> What I would do If I were you :-))))) just create .BAK file with GEDDATE()
> contacinated , so later on you can delete those files based on file name.
>
>
> "Kjell Arne Johansen" <KjellArneJohansen@.discussions.microsoft.com> wrote in
> message news:6594778E-E17A-4304-AFB1-DFF2D0C8BFD6@.microsoft.com...
>
>

Scheduled backup in SQL Server 2005 Express

SQL Server 2005 Express does not have any possibilities to schedule backup s
o
I have made a simple application for scheduling backup, running a stored
procedure in my database.
The procedure backup up to the same backup device so all backup sets are
stored in the same file. RETAINDAYS is set to 365.
In the “Restore Database” dialog in SQL Server 2005 Management Studio
Express I can se all backup sets in the backup file and also the ‘Expirati
on’
date for each backup set.
I thought that setting option INIT and NOSKIP would overwrite expired backup
sets but instead I get an error message “the medium on device <device>
expires on <date> and cannot be overwritten.
I though that new backup sets would be appended until a backup set expires
but it does not look like that.
Any suggestion on how to preserve backup sets for some days and then
overwrite it?
Help is appreciated.
Regards Kjell Arne JohansenHi
What I would do If I were you :-))))) just create .BAK file with GEDDATE()
contacinated , so later on you can delete those files based on file name.
"Kjell Arne Johansen" <KjellArneJohansen@.discussions.microsoft.com> wrote in
message news:6594778E-E17A-4304-AFB1-DFF2D0C8BFD6@.microsoft.com...
> SQL Server 2005 Express does not have any possibilities to schedule backup
> so
> I have made a simple application for scheduling backup, running a stored
> procedure in my database.
> The procedure backup up to the same backup device so all backup sets are
> stored in the same file. RETAINDAYS is set to 365.
> In the Restore Database dialog in SQL Server 2005 Management Studio
> Express I can se all backup sets in the backup file and also the
> Expiration
> date for each backup set.
> I thought that setting option INIT and NOSKIP would overwrite expired
> backup
> sets but instead I get an error message the medium on device <device>
> expires on <date> and cannot be overwritten.
> I though that new backup sets would be appended until a backup set expires
> but it does not look like that.
> Any suggestion on how to preserve backup sets for some days and then
> overwrite it?
> Help is appreciated.
> Regards Kjell Arne Johansen
>|||Hi
Yes I have an option to create backup with unique filenames also but I want
to know if there is anything I can use in SQL Server to do this for me and i
f
INIT and NOSKIP or other options can be used.
Kjell Arne
"Uri Dimant" wrote:

> Hi
> What I would do If I were you :-))))) just create .BAK file with GEDDATE()
> contacinated , so later on you can delete those files based on file name.
>
>
> "Kjell Arne Johansen" <KjellArneJohansen@.discussions.microsoft.com> wrote
in
> message news:6594778E-E17A-4304-AFB1-DFF2D0C8BFD6@.microsoft.com...
>
>

Scheduled backup in SQL Server 2005 Express

SQL Server 2005 Express does not have any possibilities to schedule backup so
I have made a simple application for scheduling backup, running a stored
procedure in my database.
The procedure backup up to the same backup device so all backup sets are
stored in the same file. RETAINDAYS is set to 365.
In the â'Restore Databaseâ' dialog in SQL Server 2005 Management Studio
Express I can se all backup sets in the backup file and also the â'Expirationâ'
date for each backup set.
I thought that setting option INIT and NOSKIP would overwrite expired backup
sets but instead I get an error message â'the medium on device <device>
expires on <date> and cannot be overwritten.
I though that new backup sets would be appended until a backup set expires
but it does not look like that.
Any suggestion on how to preserve backup sets for some days and then
overwrite it?
Help is appreciated.
Regards Kjell Arne JohansenHi
What I would do If I were you :-))))) just create .BAK file with GEDDATE()
contacinated , so later on you can delete those files based on file name.
"Kjell Arne Johansen" <KjellArneJohansen@.discussions.microsoft.com> wrote in
message news:6594778E-E17A-4304-AFB1-DFF2D0C8BFD6@.microsoft.com...
> SQL Server 2005 Express does not have any possibilities to schedule backup
> so
> I have made a simple application for scheduling backup, running a stored
> procedure in my database.
> The procedure backup up to the same backup device so all backup sets are
> stored in the same file. RETAINDAYS is set to 365.
> In the ?Restore Database? dialog in SQL Server 2005 Management Studio
> Express I can se all backup sets in the backup file and also the
> ?Expiration?
> date for each backup set.
> I thought that setting option INIT and NOSKIP would overwrite expired
> backup
> sets but instead I get an error message ?the medium on device <device>
> expires on <date> and cannot be overwritten.
> I though that new backup sets would be appended until a backup set expires
> but it does not look like that.
> Any suggestion on how to preserve backup sets for some days and then
> overwrite it?
> Help is appreciated.
> Regards Kjell Arne Johansen
>|||Hi
Yes I have an option to create backup with unique filenames also but I want
to know if there is anything I can use in SQL Server to do this for me and if
INIT and NOSKIP or other options can be used.
Kjell Arne
"Uri Dimant" wrote:
> Hi
> What I would do If I were you :-))))) just create .BAK file with GEDDATE()
> contacinated , so later on you can delete those files based on file name.
>
>
> "Kjell Arne Johansen" <KjellArneJohansen@.discussions.microsoft.com> wrote in
> message news:6594778E-E17A-4304-AFB1-DFF2D0C8BFD6@.microsoft.com...
> > SQL Server 2005 Express does not have any possibilities to schedule backup
> > so
> > I have made a simple application for scheduling backup, running a stored
> > procedure in my database.
> > The procedure backup up to the same backup device so all backup sets are
> > stored in the same file. RETAINDAYS is set to 365.
> > In the â'Restore Databaseâ' dialog in SQL Server 2005 Management Studio
> > Express I can se all backup sets in the backup file and also the
> > â'Expirationâ'
> > date for each backup set.
> > I thought that setting option INIT and NOSKIP would overwrite expired
> > backup
> > sets but instead I get an error message â'the medium on device <device>
> > expires on <date> and cannot be overwritten.
> > I though that new backup sets would be appended until a backup set expires
> > but it does not look like that.
> > Any suggestion on how to preserve backup sets for some days and then
> > overwrite it?
> >
> > Help is appreciated.
> >
> > Regards Kjell Arne Johansen
> >
>
>