Click here to Skip to main content
15,906,467 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCDataGrid Pin
vancouver7774-Nov-03 7:01
vancouver7774-Nov-03 7:01 
GeneralPausing a download thread Pin
Todd Smith4-Nov-03 6:14
Todd Smith4-Nov-03 6:14 
GeneralRe: Pausing a download thread Pin
valikac5-Nov-03 6:18
valikac5-Nov-03 6:18 
GeneralProblem with notepad and Edit box Pin
Deepak Samuel4-Nov-03 4:34
Deepak Samuel4-Nov-03 4:34 
GeneralRe: Problem with notepad and Edit box Pin
David Crow4-Nov-03 4:44
David Crow4-Nov-03 4:44 
QuestionNetwork/Internet : Catching file-requests ..? Pin
Led4-Nov-03 4:21
Led4-Nov-03 4:21 
AnswerRe: Network/Internet : Catching file-requests ..? Pin
valikac4-Nov-03 5:39
valikac4-Nov-03 5:39 
GeneralStored procedures and CRecordSet Pin
pankajdaga4-Nov-03 3:15
pankajdaga4-Nov-03 3:15 
Hi everyone,

I spend the whole night trying to make this work, but no luck! Maybe someone can help me out. I am literally pulling hairs out of my head.

I have the following SQL Stored procedure.

CREATE PROCEDURE UpdateTestVorgaenge
@TestName nVARCHAR(250),
@OutID int OUTPUT

AS
INSERT INTO Temp_TestVorgaenge_t (Name, Datum) values(@TestName, CURRENT_TIMESTAMP)
Select @OutID= @@IDENTITY

Now, I have a CRecordSet derived class and I want to use that to call this stored procedure.

here is what I do:

void DoFieldExchange(CFieldExchange* pFX)
{

pFX->SetFieldType(CFieldExchange::param);
RFX_Text(pFX, _T("TestName"), m_name);
pFX->SetFieldType(CFieldExchange::inoutParam);
RFX_Int(pFX, _T("OutID"), m_testVID);
}

And my Open statement looks like this...
CRecordset::Open(dynaset, _T("{CALL UpdateTestVorgaenge(?,?)}"), CRecordset::none);

But it throws an exception saying "Function Sequence error". Anyone has any ideas on how to make this work???

Thanks,

Sincerely yours,
Pankaj




Without struggle, there is no progress
GeneralRe: Stored procedures and CRecordSet Pin
Chris Meech4-Nov-03 3:43
Chris Meech4-Nov-03 3:43 
GeneralRe: Stored procedures and CRecordSet Pin
pankajdaga4-Nov-03 4:06
pankajdaga4-Nov-03 4:06 
GeneralRe: Stored procedures and CRecordSet Pin
Michael P Butler4-Nov-03 5:34
Michael P Butler4-Nov-03 5:34 
GeneralRe: Stored procedures and CRecordSet Pin
pankajdaga4-Nov-03 6:14
pankajdaga4-Nov-03 6:14 
GeneralAppwizard Project Settings Pin
Eran4-Nov-03 2:49
Eran4-Nov-03 2:49 
GeneralCScrollBar SB codes Pin
ns4-Nov-03 2:46
ns4-Nov-03 2:46 
Questionhow to delete, or rewrite Pin
don7cry4-Nov-03 2:43
don7cry4-Nov-03 2:43 
AnswerRe: how to delete, or rewrite Pin
valikac4-Nov-03 5:42
valikac4-Nov-03 5:42 
GeneralStretchBlt function Pin
El'Cachubrey4-Nov-03 2:14
El'Cachubrey4-Nov-03 2:14 
GeneralRe: StretchBlt function Pin
Terry O'Nolley4-Nov-03 8:47
Terry O'Nolley4-Nov-03 8:47 
GeneralEncryption by A5/3 of GSM for voice Pin
engahmadm4-Nov-03 2:10
engahmadm4-Nov-03 2:10 
GeneralRe: Encryption by A5/3 of GSM for voice Pin
Dominik Reichl4-Nov-03 9:41
Dominik Reichl4-Nov-03 9:41 
QuestionHow to write text to desktop Pin
Emis4-Nov-03 0:47
Emis4-Nov-03 0:47 
AnswerRe: How to write text to desktop Pin
Alexander M.,4-Nov-03 2:28
Alexander M.,4-Nov-03 2:28 
GeneralRe: How to write text to desktop Pin
Emis4-Nov-03 14:25
Emis4-Nov-03 14:25 
AnswerRe: How to write text to desktop Pin
Mil104-Nov-03 2:38
Mil104-Nov-03 2:38 
GeneralRe: How to write text to desktop Pin
Emis4-Nov-03 15:06
Emis4-Nov-03 15:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.