Securely logging onto an SQL server

B

Boris Zakharin

How do I log onto an SQL server without saving my password in the connection
string?
 
S

Sreejumon[MVP]

Hi,

If you SQLServer and WebServer in same network you can have Trusted Connection. Please try the followings.
"Data Source=Pubs;Initial Catalog=pubs;Integrated Security=SSPI;"
- or -
"Server=Pubs;Database=pubs;Trusted_Connection=True;"


--
Let me know if you need further help

Regards
Sreejumon[MVP]
www.mstechzone.com
 
B

Boris Zakharin

The server is not on the same network (well, it is once it's moved to the
production machine, but even then both are on remote hosting machines and I
can only access the SQL server via IP address)

Sreejumon said:
Hi,

If you SQLServer and WebServer in same network you can have Trusted
Connection. Please try the followings.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top