makis_best Well-Known Member Licensed User Longtime User Jun 14, 2019 #1 Hello Is there any way to LOG() ExecNonQuery2? For example something like Code: SQL.ExecNonQuery2($"Update LOCALIItem Set Code = ?, Description = ? , Array As Object(Crsr.GetString("ValidCode"), Crsr.GetString("ValidDescription"))) LOG(ExecNonQuery2) So I can see Update SQL Script executed. Thank you Last edited: Jun 14, 2019
Hello Is there any way to LOG() ExecNonQuery2? For example something like Code: SQL.ExecNonQuery2($"Update LOCALIItem Set Code = ?, Description = ? , Array As Object(Crsr.GetString("ValidCode"), Crsr.GetString("ValidDescription"))) LOG(ExecNonQuery2) So I can see Update SQL Script executed. Thank you
R rosippc64a Active Member Licensed User Longtime User Jun 15, 2019 #2 The code is wrong at a first look, there is an unfinished $". If I want to log my sql exec - I use sqlite database - I copy the database to my windows PC and use the sqlitestudio program do debug the sql statements. I inspect all variables value involved in statements and try execeute in sqlitestudio. Last edited: Jun 15, 2019 Upvote 0
The code is wrong at a first look, there is an unfinished $". If I want to log my sql exec - I use sqlite database - I copy the database to my windows PC and use the sqlitestudio program do debug the sql statements. I inspect all variables value involved in statements and try execeute in sqlitestudio.
makis_best Well-Known Member Licensed User Longtime User Jun 15, 2019 #3 For the moment I don't care if ExecNonQuery2 syntax is correct.... I just care about the result..... If I can have the SQL Code generated. Upvote 0
For the moment I don't care if ExecNonQuery2 syntax is correct.... I just care about the result..... If I can have the SQL Code generated.
Erel B4X founder Staff member Licensed User Longtime User Jun 16, 2019 #4 Yes: Code: Sub ExecNonQuery2(Query As String, Params As List) Log(Query) SQL.ExecNonQuery2(Query, Params) End Sub Upvote 0
Yes: Code: Sub ExecNonQuery2(Query As String, Params As List) Log(Query) SQL.ExecNonQuery2(Query, Params) End Sub
makis_best Well-Known Member Licensed User Longtime User Jun 16, 2019 #5 Erel said: Yes: Code: Sub ExecNonQuery2(Query As String, Params As List) Log(Query) SQL.ExecNonQuery2(Query, Params) End Sub Click to expand... @Erel You are God... Thank you. Upvote 0
Erel said: Yes: Code: Sub ExecNonQuery2(Query As String, Params As List) Log(Query) SQL.ExecNonQuery2(Query, Params) End Sub Click to expand... @Erel You are God... Thank you.