Hi,
I'm testing PB & Power Server 2021 with MS SQL Server 2019 Express. Both Windows and SQL server authentication are enabled.
I have some odd behaviour and problems while connecting my database from PowerServer (from PB both authentication methods works fine).
I open database configuration from Web APIs tabpage and edit configured cache.
If Authenication is set to SQL server, testing connection gives a Succesfull response. If I change authentication to Windows, it gives error :
I just discovered that Express version of MS SQL server is not allowed to run SQL agent. Could that be the reason for this? Or do you have any other ideas.
When I try to make the connection from cloud app, WMI API creates the session but resukts then into error:
"AppName": "costallocation",
"NamespaceName": "CostAllocation",
"SecureSession": "eyJ0aW...FwSE5OUU9rckFtQT09In0=",
"Version": "1.0",
"RequestId": "77172B3D-ADD7-4b11-85FB-D691E818B92C",
"Transaction": null
}
}).
dbug: PowerServer[0]
Validate Session Id: '9D550A32-A03A-45EF-B9C9-F9363DA9E2E1' Session Status: 'Created' Session Last Visit Time: '8.9.2021 12.51.58'
fail: PowerServer.Api.ServerApiController[0]
'PowerServer.Api.ServerApiController.ConnectAndCreateTransactionAsync (PowerServer.Api)' get result ({
"IsSuccess": false,
"ErrorCode": 0,
"ErrorMessage": "A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SNI_PN11, error: 25 - Connection string is not valid)",
"Version": "1.0",
"RequestId": "77172B3D-ADD7-4b11-85FB-D691E818B92C",
"AppName": "costallocation",
"Session": {
"ErrCode": 0,
"ErrMsg": null,
"SessionId": "9D550A32-A03A-45EF-B9C9-F9363DA9E2E1"
},
"Type": 7,
"Transaction": {
"TransactionId": null,
"SQLCode": -1,
"SQLDBCode": -1,
"SQLErrText": "A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SNI_PN11, error: 25 - Connection string is not valid)",
"SQLNRows": 0,
Could this be caused by the not available SQL agent?
BR, Hannu
BR, Hannu