Solved

encrypt connection between ms access and sql database backend

Posted on 2014-10-17
2
179 Views
Last Modified: 2014-10-17
i currently use the connection string below when i connect to a sql database from the ms access db.  The connection string is used for passthrough queries and recordsets.  it works fine

Connection string
connstring = "Provider=SQLOLEDB;DRIVER=SQL Server;SERVER=" & serverip & ";UID=" & usernamewrite & ";PWD=" & passwordwrite & ";DATABASE=DBName"

I am not being asked to encrypt the connection I am making the sql server.  any advise on how to go about doing that?
0
Comment
Question by:RDLFC
2 Comments
 
LVL 57

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 500 total points
ID: 40386838
You would add:

encrypt=true

to the connection string.  However note that this requires setup on the SQL Server and client (in the form of a SSL certificate) if that has not already been done:

Encrypting Connections to SQL Server
http://technet.microsoft.com/en-us/library/ms189067%28v=sql.105%29.aspx

Jim.
0
 

Author Comment

by:RDLFC
ID: 40387258
thanks, that was simpler than I thought.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

685 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