I am running a SSIS package which includes a script to check if a file exists.
When I run this in Visual Studio under my Windows credentials, it works fine and can find the file within the directory and has access.
When I deploy the package on to SQL Server and run it (still under my windows credentials, I even printed them in a log message within the script), it doesn't have access to the directory.
Note: I am not running this within an agent job, I am directly running it under the integration service package within SQL Server Management Studio.
Edit: The database is held on a remote server, which when I log into that server and use management studio there it all works fine. If I connect to the remote server as me on my machine however it doesn't
Does anyone know why?
Try giving read/write permissions to the SQL Database Engine Service account NT SERVICE\\MSSQL$<Instance Name>
(Where <Instance Name>
should be replaced by the installed instance name) :
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.