Click HERE to see how Saviynt Intelligence is transforming the industry. |
03/15/2023 11:37 PM
Hi Team,
Could you please confirm the URL, Username syntax to be used for MS SQL connection using local SQL account. In the DB connector guide, we were unable to find the connection syntax for MS SQL, please confirm if below syntax/names are correct:
URL : jdbc:sqlserver://<FQDN of DB Server>:port;databaseName=<DB Name>;
Username : local SQL Account's Principal Name without the domain?
Drivername - com.microsoft.sqlserver.jdbc.SQLServerDriver
Solved! Go to Solution.
03/16/2023 12:22 AM
jdbc:sqlserver://JOBINSSIS2016.europe.com:1433;databaseName=DB_UAM;authenticationScheme=JavaKerberos;integratedSecurity=true;userName=SAM-AUTOMATION-S;password=Rushi@123
03/16/2023 01:04 AM
Hi Rushikesh, Thanks for the reply. Just wanted to clarify that I was referring to a local SQL Server account based authentication and not Kerberos authentication. I believe the URL syntax format which you shared is for the Kerberos based authentication to MS SQL server but I am looking for the local SQL account based URL syntax.
03/16/2023 02:22 AM - edited 03/16/2023 07:00 AM
If you are using SQL Server authentication instead of Windows authentication (Kerberos), then you can use the following syntax for the JDBC URL:
syntax:-jdbc:sqlserver://<server_name/ip>:<port>;databaseName=<dbname>
03/16/2023 04:02 AM - edited 03/16/2023 04:03 AM
Hi Dixshant, thanks a lot for sharing the details. A quick query on that - Do we need to explicitly mention the username and password in the URL as well as in the Connection Parameters that is present below the URL separately? Also, from security perspective, specifying the password explicitly in the URL might cause some issues.
03/16/2023 05:36 AM
No not required, username and password goes to respective connection attributes and for URL it goes like this
jdbc:sqlserver://<server_name/ip>:<port>;databaseName=<dbname>
05/10/2023 10:23 PM
Hi,
While following the same format we get an error as such
Any idea if we are missing something?
05/11/2023 06:51 AM
Looks like connectivity DB is limited to certain networks. Check with your DB team or n/w team to see if there is any IP whitelisting is required on DB side to make a successful connection.
Also are you able to make successful connection outside saviynt?
03/16/2023 07:04 AM
yes like Saathvik mentioned:-
ername and password goes to respective connection attributes and for URL it goes like this
jdbc:sqlserver://<server_name/ip>:<port>;databaseName=<dbname>