Y use direct connect to SQL SERVER with
the question is
- keep alway connect? or close and reopen connection in any ExecQuery, ExecNonQuery, etc
(now, i use a PUBLIC VAR in a module and only open database when app is open. (Cheking error if conection are losed) )
This question is for b4x (Android and/or java)
B4X:
CC = $"jdbc:jtds:sqlserver:${ServerConfig.Server};charset=utf8;databaseName=${ServerConfig.DB};user=${ServerConfig.Usu};password=${ServerConfig.clave};appname=miappname;wsid=somethinghere;loginTimeout=10;socketTimeout=10"$
SqlServer.Initialize("net.sourceforge.jtds.jdbc.Driver", CC)
the question is
- keep alway connect? or close and reopen connection in any ExecQuery, ExecNonQuery, etc
(now, i use a PUBLIC VAR in a module and only open database when app is open. (Cheking error if conection are losed) )
This question is for b4x (Android and/or java)