Solved

Encrypt DTS command line (SQL)

Posted on 2004-04-28
4
1,404 Views
Last Modified: 2013-11-30
I need to find a way to encrypt the DTS command line.
We already have a whole lot of packages with the cmd run command
dtsrun ....blah blah which are being launched via SQL Scheduler.

Is there an easy way to encrypt this command line so that the password etc are not exposed.

Using DTSRUNUI is not viable or at least it doesn't seem that way because you encrypt the DTS package but it doesn't allow for a username and password to be entered?

I need help on how I can get my command lines encrypted

Thanks
Kathy
0
Comment
Question by:azrakdragon
  • 2
  • 2
4 Comments
 
LVL 23

Accepted Solution

by:
rama_krishna580 earned 500 total points
ID: 10938749
check here..

http://doc.ddart.net/mssql/sql2000/html/dtssql/dts_pkgmng_6asl.htm

http://www.talkroot.com/archive/topic/4154-1.html

=========

create table #encrypt(
command varchar(1000)
)

insert into #encrypt
exec master..xp_cmdshell 'dtsrun /Nhwmf_dts_consumer_budget /!y /E /Sdhwidea'

select substring(command,8,900) from #encrypt
where command like '%z%'

best of luck..

R.K
0
 

Author Comment

by:azrakdragon
ID: 10959896
Excellent, it works but stupid question how do I execute this encrypted line

Thanks a mil
0
 
LVL 23

Expert Comment

by:rama_krishna580
ID: 10959930
based on requirement please check your mannuals and above links..

best of luck..

R.K
0
 

Author Comment

by:azrakdragon
ID: 10975823
I had a look at the articles and my manuals and they tell me nothing.
However I managed to figure out how to run this.

However now I am getting the following error.
DTSRun:  Invalid hex text for encrypted parameter.

This was from the encrypted command generated using the !Y switch

What I did notice using the encrypt switch vs sing the DTSRUNUI to encrypt, the encrypted command generated by the switch was much shorter than the DTSRUNUI - every time I generated it and it doesn't work ever.
The command used by the DTSRunUI works but I am not sure if it includes the password entered
i.e. if you enter the password to connect to the SQL server at the first screen, is this the one it uses to run the package??


0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
What is Python programming? 3 66
SQL server 2008 SP4 29 34
Path to Python 9 44
SQL query to summarize items per month 5 28
A short article about problems I had with the new location API and permissions in Marshmallow
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

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

21 Experts available now in Live!

Get 1:1 Help Now