Solved

Run dtsx file as different user

Posted on 2013-11-08
2
349 Views
Last Modified: 2014-02-09
I've created some dtsx files, but now another user needs to run them.  When the other user tries to run the file, they get errors. I'm assuming I need to alter the connection string to include their credentials, but I am not sure how. Here is the connection string that is currently in the file:
 DTS:ConnectionString="Data Source=(local);Initial Catalog=MWSDGO;Provider=SQLNCLI11;Integrated Security=SSPI;Auto Translate=false;" />

Am I on the right track with this? How do I include the new user's creds?  Thanks.
0
Comment
Question by:thedeal56
2 Comments
 
LVL 32

Accepted Solution

by:
bhess1 earned 500 total points
ID: 39634761
If these are files on disk, then you need to check how the data is secured in the .dtsx file.  By default, if you save the file to disk from the studio that comes with SQL Server, the secured data is encrypted based on who the person saving the file is.  Other users cannot use these files.  There are other ways to secure these files - password, certificate, etc - but you must explicitly choose these methods when you save the files.

When you save them to the SQL Server itself, you have the option of letting the server's security handle this protection.  In this case, any login with the proper permissions can either run the package, or export the source code to a file with proper permissions for their login to open.

You also have the option of saving things like the connection strings in a resource file, and loading them at runtime, This generates additional security risks (those resource files can be pulled apart into plain text), but allows a package to be run by anyone who can get to the file on disk.

Note that you can save the file to disk without any security, but the normally secured data will be stripped from the package in that case, which is not incredibly useful normally.

TLDR: check the way you save the files to disk (assumption: you are saving them to disk) and adjust accordingly.
0
 

Author Comment

by:thedeal56
ID: 39634833
That makes sense.  Is there any way to convert a saved file into being stored on the server, or will i just need to remake them?
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VB.net and sql server 4 33
sql select record as one long string 21 22
always on switch back after failover 2 31
Tsql query 6 20
Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

786 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