Solved

sqlcmd   encrypted password

Posted on 2015-01-07
3
536 Views
Last Modified: 2015-01-12
Hello,

We are now connecting to  DB with clear text password and we would like to use encrypted password. How we can do it?
0
Comment
Question by:mokkan
3 Comments
 
LVL 75

Accepted Solution

by:
Aneesh Retnakaran earned 500 total points
ID: 40535935
the best way is to use a trusted connection, you need to use windows authentication for this. or you can use set the username and password and env variables as mentioned on the post below, but it is still not the best option.

http://zainuvk.blogspot.ca/2011/09/hise-username-and-password-with-sqlcmd.html
0
 
LVL 33

Expert Comment

by:ste5an
ID: 40535938
There's no such thing.

What do you want really? Encrypt the the connection to SQL Server? Then you need to setup your server correctly. See Enable Encrypted Connections to the Database Engine (SQL Server Configuration Manager)

Another option would be using Integrated Authentication.
0
 

Author Closing Comment

by:mokkan
ID: 40545422
Thank  you
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
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.

861 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