Solved

Run dtsx file as different user

Posted on 2013-11-08
2
346 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

[Webinar] Disaster Recovery and Cloud Management

Learn from Unigma and CloudBerry industry veterans which providers are best for certain use cases and how to lower cloud costs, how to grow your Managed Services practice in IaaS clouds, and how to utilize public cloud for Disaster Recovery

Question has a verified solution.

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

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

863 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

23 Experts available now in Live!

Get 1:1 Help Now