
This is the right guide in case you have the challenge to create an import connection to MS Synapse SQL DB which is only accessible from on-prem, due to security or other reasons.
For more general procedure I'd recommend to start with the SAP Blog from @kenneth_dalvik:
The more detailed information you'll find in this blog entry. I'll describe in detail how to prepare SAC Agent for a successful connection using ActiveDirectoryPassword as authentication method (In the latest MS SQL driver it would refere to "With Microsoft Entra ID Password authentication using a login ID and password entered by the user.)
Remark: Configuration happened on a Windows server
This is the high level solution architecture, further details will be explained below
Create the config file and place it in the Tomcat folder
<Tomcat path>\webapps\C4A_AGENT\configure\DriverConfig.properties
Example file is available here: SAC Help
Place the compatible jdbc driver (I've downloaded it fromsomewhere on the server convenient for you and copy the location of the file.
MS SQL Server 2019=<file path>\mssql-jdbc-12.8.1.jre11.jar
Create system variable on the server named SAP_CLOUD_AGENT_PROPERTIES_PATH
Add the java options parameter:
-DSAP_CLOUD_AGENT_PROPERTIES_PATH=<Tomcat path>\webapps\C4A_AGENT\configure\DriverConfig.properties
In order to allow usage of my desired authentication it was observed that additional java libraries were required. The library and all dependend libraries for msal4j have been added to <Tomcat path>\lib. The below listed items have been added:
->Restart the SAC Agent service.
In SAC frontent go to connections->connections
Create a new connection and select SQL Database:
Enter connection parameters. Those connection parameters have been essential:
encrypt=true;trustServerCertificate=true;hostNameInCertificate=*.sql.azuresynapse.net;loginTimeout=30;authentication=ActiveDirectoryPassword;
Confirm with OK. Ideally the connection is saved and can be used later on.
I hope this prevents some headache and effort.
Please share your comments.
Thanks.
Best regards,
Timmy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
13 | |
5 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |