This library, a tidied up version of http://www.b4x.com/forum/additional-libraries/3082-ms-sql-library.html allows access to SQL Server databases.
A rudimentary help file is included that describes the available methods and properties but it is expected that you already know what do do in order to connect to a SQL Server instance because I don't! However you do need System.Data.SqlClient.Dll from post #8 of this thread on your device.
EDIT :- Version 1.7 posted. See post #8 for details.
EDIT :- Version 1.8 posted. See post #10 for details.
EDIT :- Version 1.9 posted. See post #13 for details.
EDIT :- Version 2.0 posted. See post #32 for details.
HI,
I use this dll can be connected server, but sql.ReadField can't read data always # ERROR #
Sub Button1_Click
sql.New1
Dim connected As Boolean
connected = sql.Open("Persist Security Info=false;Integrated Security=false;Server=" & server & ", " & port &"; initial catalog=" & database & "; user id="& login & "; password=" & pass)
If connected = True Then
ss=sql.ExecuteNonQuery("Select * FROM test WHERE barcode='" & name.Text & "'")
Msgbox(sql.ConnectionState)
Msgbox(sql.ReadField("name") & sql.ReadField("name") & ss)
Else
Msgbox("Unable to connect to server")
End If
sql.Close
End Sub