Click here to Skip to main content
15,905,963 members
Home / Discussions / Database
   

Database

 
QuestionmySQL, what do you think? Pin
Jassim Rahma1-Jan-03 4:02
Jassim Rahma1-Jan-03 4:02 
AnswerRe: mySQL, what do you think? Pin
Douglas Troy1-Jan-03 5:48
Douglas Troy1-Jan-03 5:48 
GeneralRe: mySQL, what do you think? Pin
Jassim Rahma1-Jan-03 11:19
Jassim Rahma1-Jan-03 11:19 
GeneralRe: mySQL, what do you think? Pin
perlmunger6-Jan-03 13:41
perlmunger6-Jan-03 13:41 
AnswerRe: mySQL, what do you think? Pin
Rob Graham1-Jan-03 6:12
Rob Graham1-Jan-03 6:12 
GeneralRe: mySQL, what do you think? Pin
Jassim Rahma1-Jan-03 11:10
Jassim Rahma1-Jan-03 11:10 
AnswerRe: mySQL, what do you think? Pin
David Salter4-Jan-03 1:11
David Salter4-Jan-03 1:11 
GeneralAppendChunk Pin
Dave Loeser31-Dec-02 7:51
Dave Loeser31-Dec-02 7:51 
Hi all,
I've been working on a conversion app, that is a one off application... basically reading data from one table and inserting it into a new table. I'm using AppendChunk to insert the new record into the destination table... now on to the problem.

When I append the data to the field it seems that this is being done asynchronously and when I try to free the memory I’m getting an exception that says the memory is locked. Here's the snippet of code: This code is inside a try/catch block
<br />
    ...<br />
    //Assign the Safe array  to a variant. <br />
    _variant_t varChunk;<br />
    varChunk.vt = VT_ARRAY|VT_UI1;<br />
    varChunk.parray = ChunkBlock;<br />
		<br />
    //SafeArrayLock(varChunk.parray);<br />
    pRs->Fields->Item["Data"]->AppendChunk(varChunk); <br />
    //SafeArrayUnlock(varChunk.parray);<br />
<br />
    hr = pRs->Update();<br />
    pRs->Close();<br />
    SafeArrayDestroy(varChunk.parray);<br />
    ...<br />


My questions are; is AppendChunk an asynchronous operation? And if so, is there a way to force it to be synchronous?

Thanks for any help or pointers...


Dave "Dak Lozar" Loeser
When access is allowed to a member, it said to be accessible. Otherwise, it is inaccessible. - MSDN:C# Programmer's Reference
GeneralADODB Object Vs. COM component Pin
retZ30-Dec-02 8:33
retZ30-Dec-02 8:33 
GeneralSQL Server strange error Pin
Shah Shehpori30-Dec-02 2:13
sussShah Shehpori30-Dec-02 2:13 
GeneralRe: SQL Server strange error Pin
Rob Graham30-Dec-02 8:46
Rob Graham30-Dec-02 8:46 
GeneralStrange problem with Access and SQLServer Pin
Mazdak29-Dec-02 8:35
Mazdak29-Dec-02 8:35 
GeneralRe: Strange problem with Access and SQLServer Pin
Rob Graham29-Dec-02 8:58
Rob Graham29-Dec-02 8:58 
GeneralRe: Strange problem with Access and SQLServer Pin
Mazdak29-Dec-02 19:59
Mazdak29-Dec-02 19:59 
GeneralRe: newbie needs database help Pin
Michael P Butler28-Dec-02 10:25
Michael P Butler28-Dec-02 10:25 
GeneralA difficult challenge Pin
skallestad27-Dec-02 15:06
skallestad27-Dec-02 15:06 
GeneralGetDate() in Access Pin
Mazdak27-Dec-02 8:40
Mazdak27-Dec-02 8:40 
GeneralRe: GetDate() in Access Pin
Nick Parker27-Dec-02 9:05
protectorNick Parker27-Dec-02 9:05 
GeneralRe: GetDate() in Access Pin
Mazdak29-Dec-02 1:16
Mazdak29-Dec-02 1:16 
GeneralRe: GetDate() in Access Pin
Rob Graham30-Dec-02 8:59
Rob Graham30-Dec-02 8:59 
GeneralRe: GetDate() in Access Pin
Mazdak31-Dec-02 7:30
Mazdak31-Dec-02 7:30 
GeneralDetermining if a datarow contains a particular column Pin
MS le Roux26-Dec-02 21:35
MS le Roux26-Dec-02 21:35 
GeneralRe: Determining if a datarow contains a particular column Pin
MS le Roux26-Dec-02 21:54
MS le Roux26-Dec-02 21:54 
GeneralRe: Determining if a datarow contains a particular column Pin
leppie27-Dec-02 12:14
leppie27-Dec-02 12:14 
QuestionHow do I execute a query through an ASP page to update my fields Pin
E Slipchenko26-Dec-02 18:29
E Slipchenko26-Dec-02 18:29 

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.