Solved

Impersonate user for SQL Server job

Posted on 2006-06-30
6
805 Views
Last Modified: 2007-12-19
MS SQL Server is running on a machine that is not in the domain it has to communicate with.

I created a package in VBScript, and scheduled it. The package should go to a share on a machine in the domain, and pickup a file there. That gives a permissions problem, because "system" of the machine with the SQL Server has no permissions on the share (even not when "everyone" has modify permissions: because the machine is not in the domain, it isn't part of "everyone").

Is it possible (and if yes how) to pass login information to the job on SQL Server?

0
Comment
Question by:sybe
6 Comments
 
LVL 9

Expert Comment

by:udayshankar
Comment Utility
create a new account ( sql authentication) in sql server and make that the owner of the job. and then create a same account in windows (file share) with the same username and password and give it access to that folder.
0
 
LVL 28

Author Comment

by:sybe
Comment Utility
Sorry, I have already solved my problem. My solution was to use the WHS Network object, and map a network drive before starting the process, and remove the network drive afterwards.

Thanks for your effort.
0
 
LVL 75

Expert Comment

by:Anthony Perkins
Comment Utility
Just a friendly reminder:  The following question appears to have fallen through the cracks, please attend to it:
http://www.experts-exchange.com/Web/Web_Languages/HTML/Q_21784231.html
0
 
LVL 28

Author Comment

by:sybe
Comment Utility
0
 
LVL 1

Accepted Solution

by:
GhostMod earned 0 total points
Comment Utility
Closed, 500 points refunded.

GhostMod
Community Support Moderator
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

Introduced in Microsoft SQL Server 2005, the Copy Database Wizard (http://msdn.microsoft.com/en-us/library/ms188664.aspx) is useful in copying databases and associated objects between SQL instances; therefore, it is a good migration and upgrade tool…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now