What about calling query.next() first before accessing the value? By the way, your "1" is ignored if you set the type of binding to "Out".
What about calling query.next() first before accessing the value? By the way, your "1" is ignored if you set the type of binding to "Out".
Shame on me!! MSSQL via ODBC needs setForwardOnly(true) also for stored procedures..
Qt Code:
... QSqlQuery query; query.setForwardOnly(true); query.prepare("{? = call dbo.proc03test(?);}"); ...To copy to clipboard, switch view to plain text mode
+1 to waysotas post, see doc
Bookmarks