How to connect Android Studio with SQl Server Database using Kotlin?

Hey,
I am a beginner to Android. I want to create a signup page in “Android Studio” using “Kotlin” which get input from user and store it in the database and when user login with the registered details it validate from the database.
For that, I want to know how to connect android Studio with “SQL Server” Database using “Kotlin”.