?
Solved

sqlcmd   encrypted password

Posted on 2015-01-07
3
Medium Priority
?
829 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
[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
3 Comments
 
LVL 75

Accepted Solution

by:
Aneesh Retnakaran earned 2000 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 35

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
I have a large data set and a SSIS package. How can I load this file in multi threading?
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 video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Suggested Courses

741 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