WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: whodat on September 23, 2020, 10:42:34 AM

Title: ADODB.connection - SSL Security Error
Post by: whodat on September 23, 2020, 10:42:34 AM
I have been using this script to connect to my server/db.  It has been working for years.  My company recently disabled TLS1.0/1.1.  I am getting SSSL security error now.  what can I do to make it work?

Microsoft OLE DB Provider for SQL Server
[DBNETLIB][ConnectionOpen (SECDoClientHandshake().]SSL Security error


oCN = ObjectOpen('ADODB.Connection')
oCN.Provider = 'SQLOLEDB'
oCN.Properties('Data Source').Value = MySource
oCN.Properties('Initial Catalog').Value = '%MyCatalog%'
oCN.Properties('User ID').Value = MyUserID  ;use for non integrated
oCN.Properties('Password').Value = MyPassword  ;use for non integrated"
oCN.Open()


Thanks in advance for any feedback
Charles

update:  all fixed - I changed the provider to new provider.   oCN.Provider = 'SQLNCLI11' 
Title: Re: ADODB.connection - SSL Security Error
Post by: stanl on September 23, 2020, 11:33:58 AM
Not sure, but there are additional parameters you can add to the connection string, like 'Trusted_Connection = Yes' or 'Integrated Security = Yes'
Title: Re: ADODB.connection - SSL Security Error
Post by: td on September 23, 2020, 12:55:03 PM
If you are using MSFT' SQL server you could use the native SQL client provider and set the "DataTypeCompatibility" property to 80.