Solved

Run dtsx file as different user

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Dynamics crm 2011 8 45
MSSQL 2014 Query Synthax 8 38
Numeric sequence in SQL 14 37
SQL Server memory Issue 7 74
Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
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…
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

758 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

18 Experts available now in Live!

Get 1:1 Help Now