Home » U++ Library support » U++ SQL » MSSQL error management
Re: MSSQL error management [message #49636 is a reply to message #49635] |
Mon, 19 March 2018 16:35 |
|
mirek
Messages: 13975 Registered: November 2005
|
Ultimate Member |
|
|
Giorgio wrote on Mon, 19 March 2018 14:50Hi Mirek,
this is the log:
b = false
session.throwonerror = true
Regards,
gio
Well, if you check the next line, 'throw' should have happened...
I would say something else must be going on here. Please try to add more logs to your code, e.g.:
SqlSchema sch(MSSQL);
DLOG("A");
StdStatementExecutor se(SQL.GetSession());
DLOG("B"); All_Tables(sch);
ODBCPerformScript(sch.Upgrade(), se);
DLOG("C");
ODBCPerformScript(sch.Attributes(), se);
DLOG("D");
mssql.ThrowOnError();
DLOG("E");
try {
DLOG("F");
for(int i = 0; i < 10; i++)
SQL * Insert(TEST)(ID, i)(TEXT, String('A' + i, 1));
DLOG("G"); }
catch(SqlExc) {
DLOG("ERROR");
}
DLOG("H");
S_TEST tst;
Sql sql;
sql * Select(tst).From(TEST);
while(sql.Fetch(tst))
DDUMP(tst.ID);
and send the whole log....
Mirek
|
|
|
|
|
MSSQL error management
By: Giorgio on Fri, 16 February 2018 10:36
|
|
|
Re: MSSQL error management
By: mirek on Sat, 24 February 2018 19:21
|
|
|
Re: MSSQL error management
By: mirek on Sat, 24 February 2018 19:39
|
|
|
Re: MSSQL error management
By: Giorgio on Mon, 26 February 2018 15:01
|
|
|
Re: MSSQL error management
By: mirek on Mon, 26 February 2018 16:22
|
|
|
Re: MSSQL error management
By: Giorgio on Fri, 09 March 2018 18:40
|
|
|
Re: MSSQL error management
By: mirek on Wed, 14 March 2018 10:39
|
|
|
Re: MSSQL error management
By: Giorgio on Mon, 19 March 2018 12:40
|
|
|
Re: MSSQL error management
By: mirek on Mon, 19 March 2018 12:58
|
|
|
Re: MSSQL error management
By: Giorgio on Mon, 19 March 2018 14:50
|
|
|
Re: MSSQL error management
By: mirek on Mon, 19 March 2018 16:35
|
|
|
Re: MSSQL error management
By: Giorgio on Tue, 20 March 2018 11:15
|
|
|
Re: MSSQL error management
By: mirek on Tue, 20 March 2018 16:42
|
|
|
Re: MSSQL error management
By: Giorgio on Wed, 21 March 2018 13:14
|
|
|
Re: MSSQL error management
By: mirek on Wed, 21 March 2018 14:41
|
|
|
Re: MSSQL error management
By: mirek on Wed, 21 March 2018 15:25
|
|
|
Re: MSSQL error management
By: Giorgio on Wed, 21 March 2018 15:58
|
|
|
Re: MSSQL error management
By: mirek on Wed, 21 March 2018 16:14
|
|
|
Re: MSSQL error management
By: Giorgio on Wed, 21 March 2018 16:30
|
|
|
Re: MSSQL error management
By: mirek on Wed, 21 March 2018 18:46
|
|
|
Re: MSSQL error management
By: Giorgio on Thu, 22 March 2018 09:06
|
Goto Forum:
Current Time: Sun May 05 11:06:16 CEST 2024
Total time taken to generate the page: 0.01953 seconds
|