I'm not sure how many people using UniDAC with XData. I'm trying to follow a video on TMS channel and trying to connect XData with SQL Server's Northwind DB.
Delphi Community 10.3.2, Also tested on Delphi 10.2.3 Enterprise. Same result
UniDAC Demo 8.0.1
SQL Server Express 2016 with Windows Authentication, open TCP/IP connection and port 1433
I can connect to database with UniConnection properly.
Hi, from your project, it looks like you are mixing two ways of creating a XData Server. You are using the legacy approach (where you have the TXDAtaServerModule being created manually from code) and then you dropped a TXDataServer component. The TXDataServer component you dropped is not being used, thus the code you added to its event is also not being used.
I'd suggest you create a new application using the "TMS XData VCL Server" wizard. That will properly setup the components in the way you need. It's actually much simpler than your code.
If you want to fix your existing code, then you should remove the TXDataServer component and add the middleware code to your TXDataServerModule directly in code, inside the StartServer procedure declared in unit Server: