Android Question Android JSQL

BarryW

Active Member
Licensed User
Longtime User
My B4j App successfully connected directly on a SQL Server

B4X:
#Region  Project Attributes
#CommandLineArgs:
#MergeLibraries: True
#AdditionalJar: jtds-1.3.1.jar
#End Region

Sub Process_Globals
    Dim JSQL As SQL
End Sub

Sub AppStart (Args() As String)
    JSQL.Initialize("net.sourceforge.jtds.jdbc.Driver", "jdbc:jtds:sqlserver://192.168.1.244/nino;user=developer;password=developer")
    Test
End Sub

Sub Test
    Dim RS As ResultSet = JSQL.ExecQuery("SELECT * FROM tbl_employee")
    Do While RS.NextRow
        Dim m As Map : m.initialize
        For x = 0 To RS.ColumnCount -1
            m.Put(RS.GetColumnName(x), RS.GetString2(x))
        Next
        Log(m)
    Loop
End Sub

Is it possible to port B4j JSQL to android to connect directly on a SQL Server or there is an existing library for this. Tnx
 

DonManfred

Expert
Licensed User
Longtime User
Wrong forum! This is the B4A forum...
I´ll let the Thread move to B4J Forum...
 
Upvote 0

BarryW

Active Member
Licensed User
Longtime User
Let say jRDC2 is compatible but how can i access it? Using SQL Lib? Which having different parameter of connection...
 
Upvote 0

BarryW

Active Member
Licensed User
Longtime User
i know how to use RDC but i want connect directly on my MS SQL Server without third party software... Tnx...
 
Upvote 0
Top