You are not logged in.
Pages: 1
Hi, AB
I have upgrade to win11 with SQL2019, installed "Microsoft OLE DB Driver for SQL Server".
But, when the win32 client to Rest server showing "Internal Server Error".
It's OK when MSSQL2016 in Win10, installed "Microsoft OLE DB Driver for SQL Server".
my connection code:
aProps := TSqlDBOleDBMSSQL2008ConnectionProperties.Create('tcp:127.0.0.1,1433','DB','Name','Password');
aProps := TOleDBMSSQL2012ConnectionProperties.Create('tcp:127.0.0.1,1433','DB','Name','Password');
aProps := TSqlDBOleDBMSSQL2018ConnectionProperties.Create('tcp:127.0.0.1,1433','DB','Name','Password');
I have tried 3 versions, always shows "Internal Server Error".
See the Log:
0000000000772D1F ' SQL mormot.db.sql.oledb.TSqlDBOleDBConnection(05510710) SELECT * FROM TABLE1
0000000000772D27 ' EXC EOleSysError 0x80040154 {Message:"Class not registered"} [HttpSrv 8080apps prog THttpApiS] at 01002ba3cf
What's wrong in my coding ?
Thanks for your help.
Mark
Offline
Hi ! AB,
I have solved the MSSQL2019 issue.
MSSQL2019 Server need the previous version sql native client 2012 to work .
Update you.
https://stackoverflow.com/questions/760 … sql-native
https://www.microsoft.com/en-us/downloa … x?id=50402
BTW, I want to cross platform deployment, I have tried DBZeros connection, but not success.
It seems not easy to implement?
Mark
Offline
Please, note what OleDB is deprecated, see https://learn.microsoft.com/en-us/sql/r … rver-ver16
We use ODBC on both nix and Windows last year, works OK
Offline
Hi, mpv,
I also notice this message.
I am finding solution that not depends on M$ (always kidding to developer, M$ always builds a house and then destroy : > )
But some existing apps using M$SQL, need to maintain.
Please point me to using ODBC with example.
Thanks.
Mark
Offline
Good idea,
Good idea,
Welcome to Linux world !
Offline
Pages: 1