Click here to Skip to main content
16,004,806 members
Home / Discussions / Database
   

Database

 
GeneralRe: Specifying a connection should use TCP/IP Pin
James T. Johnson26-Jan-02 19:44
James T. Johnson26-Jan-02 19:44 
GeneralCHAR, adVarWChar, CString Pin
David Pokluda22-Jan-02 21:12
David Pokluda22-Jan-02 21:12 
GeneralADO Data Control Pin
22-Jan-02 20:37
suss22-Jan-02 20:37 
Questionwhich data type responding to DBTYPE_DBTIMESTAMP? Pin
Aaron K.B. Huang18-Jan-02 2:17
Aaron K.B. Huang18-Jan-02 2:17 
AnswerRe: which data type responding to DBTYPE_DBTIMESTAMP? Pin
Konstantin Vasserman18-Jan-02 2:30
Konstantin Vasserman18-Jan-02 2:30 
GeneralRe: which data type responding to DBTYPE_DBTIMESTAMP? Pin
Aaron K.B. Huang18-Jan-02 21:56
Aaron K.B. Huang18-Jan-02 21:56 
GeneralMemory leak when connecting to an Excel data source usin ODBC Pin
Martin Fridegren15-Jan-02 3:33
Martin Fridegren15-Jan-02 3:33 
GeneralAbout Provider's memeory manager Pin
Jeason Zhao14-Jan-02 23:13
Jeason Zhao14-Jan-02 23:13 
System : Win2000Profession VC6SP5 MDAC2.6 SQLserver7
When I retrive 15,000,000 records,the memory raise slowly to 2G,how to resolve this memeory problem?
The main routine is blow:

m_ptrRecordset->Open(
bstrSQL,
m_ptrConnection.GetInterfacePtr(),
ADODB::adOpenForwardOnly,
ADODB::adLockUnspecified,
ADODB::adAsyncExecute );
//--------------------------------------------------
while(!ptrRS->adoEOF)
{
lRow ++;
ptrFields = ptrRS->Fields;
nCols = ptrFields->Count;
for(long n = 0; n < nCols; n++)
{
vCol=n;
hr = ptrFields->get_Item(vCol, &ptrField);
VARIANT _result;
VariantInit(&_result);
hr = ptrField->get_Value(&_result);
CString str((LPCTSTR)CHelpers::CrackStrVariant(_result));
fwrite(str.GetBuffer(2048),sizeof(char),str.GetLength(),file);
if(n<ncols-1)
fwrite(",",sizeof(char),1,file);
="" }
="" fwrite("\n",sizeof(char),1,file);
="" hr="ptrRS-">raw_MoveNext();
if(FAILED(hr))
break;
}
ptrRS = ptrOldRS->NextRecordset(&vRowsAffected);
}
while(ptrRS != NULL);

Please pardon my weak English!
Generalexecution speed... Pin
l a u r e n14-Jan-02 6:20
l a u r e n14-Jan-02 6:20 
GeneralRe: execution speed... Pin
Konstantin Vasserman14-Jan-02 7:18
Konstantin Vasserman14-Jan-02 7:18 
GeneralRe: execution speed... Pin
Daniel Turini14-Jan-02 8:35
Daniel Turini14-Jan-02 8:35 
GeneralRe: execution speed... Pin
Carlos Antollini14-Jan-02 9:13
Carlos Antollini14-Jan-02 9:13 
GeneralRe: execution speed... Pin
Konstantin Vasserman14-Jan-02 9:17
Konstantin Vasserman14-Jan-02 9:17 
GeneralRe: execution speed... Pin
Carlos Antollini14-Jan-02 9:45
Carlos Antollini14-Jan-02 9:45 
GeneralRe: execution speed... Pin
Konstantin Vasserman14-Jan-02 9:51
Konstantin Vasserman14-Jan-02 9:51 
GeneralRe: execution speed... Pin
Carlos Antollini14-Jan-02 9:54
Carlos Antollini14-Jan-02 9:54 
GeneralRe: execution speed... Pin
l a u r e n14-Jan-02 9:17
l a u r e n14-Jan-02 9:17 
GeneralRe: execution speed... Pin
Carlos Antollini14-Jan-02 9:49
Carlos Antollini14-Jan-02 9:49 
GeneralRe: execution speed... Pin
l a u r e n14-Jan-02 20:19
l a u r e n14-Jan-02 20:19 
GeneralRe: execution speed... Pin
Carlos Antollini15-Jan-02 2:41
Carlos Antollini15-Jan-02 2:41 
GeneralRe: execution speed... Pin
AndyG14-Jan-02 15:38
AndyG14-Jan-02 15:38 
GeneralRe: execution speed... Pin
l a u r e n14-Jan-02 20:21
l a u r e n14-Jan-02 20:21 
GeneralRe: execution speed... Pin
Nick Parker16-Jan-02 3:42
protectorNick Parker16-Jan-02 3:42 
GeneralRe: execution speed... Pin
James T. Johnson22-Jan-02 21:27
James T. Johnson22-Jan-02 21:27 
GeneralADO: Delete record fails for dBASE file Pin
10-Jan-02 2:46
suss10-Jan-02 2:46 

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.