SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


backup with different credentials


backup with different credentials

Author
Message
Hawkeye_DBA
Hawkeye_DBA
SSC Eights!
SSC Eights! (898 reputation)SSC Eights! (898 reputation)SSC Eights! (898 reputation)SSC Eights! (898 reputation)SSC Eights! (898 reputation)SSC Eights! (898 reputation)SSC Eights! (898 reputation)SSC Eights! (898 reputation)

Group: General Forum Members
Points: 898 Visits: 566
Is it possible for me to have SQL Services logged in as a local admin account on Server A (SQL Server 2000) and back that server up with Server B (SQL Server 2005) to Server C (my backup server) with either a Maintenance Plan or a custom SSIS package?

I don't know how long I will need to do this - it is possibly short-term and I do not believe I can change the account that SQL Server is logged in as on the 2000 server... ugh

I have tried all of the usual ways.

Thanks for any input.

SSkaar
Jeffrey Williams 3188
Jeffrey Williams 3188
SSCoach
SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)

Group: General Forum Members
Points: 19991 Visits: 10042
Since the backup operation will occur on ServerA - and will run in the context of the SQL Server Agent on that server, the only way I see is to build your SSIS package to backup locally and then copy the backup file.

That way, the user running the copy command needs access to all three servers.

At least, I think that will work.

Jeffrey Williams
Problems are opportunities brilliantly disguised as insurmountable obstacles.

How to post questions to get better answers faster
Managing Transaction Logs

Steve Jones
Steve Jones
SSC Guru
SSC Guru (150K reputation)SSC Guru (150K reputation)SSC Guru (150K reputation)SSC Guru (150K reputation)SSC Guru (150K reputation)SSC Guru (150K reputation)SSC Guru (150K reputation)SSC Guru (150K reputation)

Group: Administrators
Points: 150882 Visits: 19455
I thought that the backup would run under the context of the service account for SQL Server. You submit the request under your SQL login, but the service account for SQL is what writes the file and needs rights.

You can change the rights for the service account in AD. I would only add rights to this account, not remove any.

If you run a copy, the Agent account will need the rights if it executes the copy.

Follow me on Twitter: @way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
Hawkeye_DBA
Hawkeye_DBA
SSC Eights!
SSC Eights! (898 reputation)SSC Eights! (898 reputation)SSC Eights! (898 reputation)SSC Eights! (898 reputation)SSC Eights! (898 reputation)SSC Eights! (898 reputation)SSC Eights! (898 reputation)SSC Eights! (898 reputation)

Group: General Forum Members
Points: 898 Visits: 566
Yes, that's correct, it runs under the Service or Agent account, depending on if you execute directly or schedule in a job. The problem is that I cannot change the services to run under anything except Local for that server.

I believe the Copy with SSIS will work however, if I can pass in the connection string with credentials, I can use the domain account that has access to all three servers (my usual service account ha ha).

Ok thanks for the feedback - I will reply and let you both know if I got it to work with SSIS.

Cheers,

SSkaar
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search