hi
Is there a way to connect to the mssql database using the instance name with JdbcSQL ?
Now with this code my connection is ok but I need to connect to a specific instance.
Is there a way to connect to the mssql database using the instance name with JdbcSQL ?
Now with this code my connection is ok but I need to connect to a specific instance.
B4X:
#AdditionalJar: mssql-jdbc-12.8.1.jre8
Private SQL1 As JdbcSQL
Dim DBLoaction As String = "localhost"
Dim InstanceName As String = "HAMTA"
Dim DBUser As String = "sa"
Dim DBPass As String = "12345"
Dim DBName As String = "test1"
SQL1.Initialize2("net.sourceforge.jtds.jdbc.Driver", _
$"jdbc:jtds:sqlserver://${DBLoaction}:1335;databaseName=${DBName};"$, DBUser, DBPass)
Log("Connected : " & SQL1.IsInitialized)