I have a remote database (SQL Server) that I connect to via the Internet.
I use this connection string (works perfectly):
ConnectionString = "Driver={SQL Server Native Client 11.0};" _
& "Server=xxx.xxx.x.xx;" _
& "Database=MyDbName;" _
& "Uid=MyId;" _
& "Pwd={MyPassword};" _
& "Connection Timeout=30;"
I was asked to add encryption to this connection string, but I do not know what I am required to add and where...
I tried to add this Encrypt=yes; commend to the connection string but I get an error (“The certificate chain was issued by an authority that is not trusted”).
Server OS - Windows server 2016 standard.
Users OS - windows 7 - 10 with Excel 2007 - 2019 or 365
Encrypt=yesto your connection string you probably also need to includeTrustServerCertificate=yesas well. - AlwaysLearning"Encrypt=yes;TrustServerCertificate=yes;"to the connection string and it works, is this mean that now my connection string is encrypted and more secure ? - xl0911