Just installed 6.4.15, ran fine with FB but I get this error (subject) when connecting inside a thread using <TUniConnection>.connect(ConnectionString).
ConnectionString=
'Provider Name=SQL Server;Provider=SQLOLEDB.1;Data Source=VMW7;Initial Catalog=PA;Force Create Database=False;Authentication=Windows;Login Prompt=False'
All works well in 6.4.14
v6.4.15 - EOLEDBError with message 'Cannot generate SSPI context'.
Re: v6.4.15 - EOLEDBError with message 'Cannot generate SSPI context'.
We can't reproduce the described issue. Please clarify, if there is a successful connection to SQL Server on the client machine, if you use SQL Server Management Studio for that user?
Re: v6.4.15 - EOLEDBError with message 'Cannot generate SSPI context'.
The main thread connects successfully and loads the data. This occurs only inside the threads.
Re: v6.4.15 - EOLEDBError with message 'Cannot generate SSPI context'.
To solve the issue, try before calling the TUniConnection.Connect method, add a call of the CoInitialize function. To use CoInitialize, add the ActiveX unit to the uses section.
If the issue is still reproduced, then compose a small example for its reproduction and send it, using the contact form on our website http://www.devart.com/company/contactform.html .
If the issue is still reproduced, then compose a small example for its reproduction and send it, using the contact form on our website http://www.devart.com/company/contactform.html .
Re: v6.4.15 - EOLEDBError with message 'Cannot generate SSPI context'.
This exists since it works in 6.4.14.azyk wrote:To solve the issue, try before calling the TUniConnection.Connect method, add a call of the CoInitialize function. To use CoInitialize, add the ActiveX unit to the uses section..
But to be clear this error occurs in 6.4.15 in a TTask not TThread.
Re: v6.4.15 - EOLEDBError with message 'Cannot generate SSPI context'.
Was using 6.4.14 due to this issue and switched to 6.4.15 to see if I could give you more info and can no longer reproduce this problem.FredS wrote:But to be clear this error occurs in 6.4.15 in a TTask not TThread.
Re: v6.4.15 - EOLEDBError with message 'Cannot generate SSPI context'.
Using TTask we are also unable to reproduce the described issue in UniDAC 6.4.15. Please send us an example to reproduce the issue.