SQL Stored Procedure
Posted: Wed Apr 14, 2004 4:46 pm
Hi
i am currently working on a database that has stored procedures in it (MS-SQL Server) but i can´t get a result from it :
looks like this :
the results should be like this:
Result1 (String)
.
.
.
Result36 (String)
Debug output sql.log:
PureBasic402875 304-228 ENTER SQLExecDirect
HSTMT 00881F88
UCHAR * 0x00B60048 [ 44] "EXEC MyStoredProcedure123456789 'Serialnum1'"
SDWORD 44
PureBasic402875 304-228 EXIT SQLExecDirect with return code 0 (SQL_SUCCESS)
HSTMT 00881F88
UCHAR * 0x00B60048 [ 44] "EXEC MyStoredProcedure123456789 'Serialnum1'"
SDWORD 44
PureBasic402875 304-228 ENTER SQLFetch
HSTMT 00881F88
PureBasic402875 304-228 EXIT SQLFetch with return code -1 (SQL_ERROR)
HSTMT 00881F88
DIAG [24000] [Microsoft][ODBC SQL Server Driver]Invalid cursor state (0)
seems not to work here
(= 0)
do i have to youse WINAPI to get those results ?
i am currently working on a database that has stored procedures in it (MS-SQL Server) but i can´t get a result from it :
looks like this :
Code: Select all
DatabaseQuery("EXEC MyStoredProcedure123456789 'Serialnum1'")
Result1 (String)
.
.
.
Result36 (String)
Debug output sql.log:
PureBasic402875 304-228 ENTER SQLExecDirect
HSTMT 00881F88
UCHAR * 0x00B60048 [ 44] "EXEC MyStoredProcedure123456789 'Serialnum1'"
SDWORD 44
PureBasic402875 304-228 EXIT SQLExecDirect with return code 0 (SQL_SUCCESS)
HSTMT 00881F88
UCHAR * 0x00B60048 [ 44] "EXEC MyStoredProcedure123456789 'Serialnum1'"
SDWORD 44
PureBasic402875 304-228 ENTER SQLFetch
HSTMT 00881F88
PureBasic402875 304-228 EXIT SQLFetch with return code -1 (SQL_ERROR)
HSTMT 00881F88
DIAG [24000] [Microsoft][ODBC SQL Server Driver]Invalid cursor state (0)
Code: Select all
NEXTDATABASEROW()

do i have to youse WINAPI to get those results ?