Solved

encrypt connection between ms access and sql database backend

Posted on 2014-10-17
2
175 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

776 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