Solved

Run dtsx file as different user

Posted on 2013-11-08
2
352 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
What type of testing am I doing? 4 76
Format Output of Select Statement 2 38
Sql server query 8 21
SQL Server View  - Timeout Expired 5 18
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
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

752 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