Click here to Skip to main content
15,896,118 members
Home / Discussions / Database
   

Database

 
GeneralRe: how can i repair and compact the access2000 database using ado in vc? Pin
John Wong2-Dec-02 21:34
John Wong2-Dec-02 21:34 
GeneralRe: how can i repair and compact the access2000 database using ado in vc? Pin
whelk2-Dec-02 22:38
whelk2-Dec-02 22:38 
GeneralRe: how can i repair and compact the access2000 database using ado in vc? Pin
John Wong3-Dec-02 22:09
John Wong3-Dec-02 22:09 
GeneralRe: Milli second resolution in DateTime Pin
Rob Graham23-Nov-02 6:12
Rob Graham23-Nov-02 6:12 
GeneralRe: Milli second resolution in DateTime Pin
Majid Shahabfar26-Nov-02 0:34
Majid Shahabfar26-Nov-02 0:34 
QuestionRecordCount Property return me -1? Pin
anju22-Nov-02 2:07
anju22-Nov-02 2:07 
AnswerRe: RecordCount Property return me -1? Pin
Nick Parker22-Nov-02 2:25
protectorNick Parker22-Nov-02 2:25 
GeneralRe: RecordCount Property return me -1? Pin
anju22-Nov-02 20:46
anju22-Nov-02 20:46 
Hi Nick,
Thanks for your reply,
Still now RecordCount Property giving me -1;

what your provided information is good if i am getting
the recordset through "adCmdText or adCmdTable"
but here i am getting the recordset through "adSotredProc".
r u observed this difference?

i am getting full recordset with out any problem except
RecordCount.

Actually my problem was concentrated here....

//Execute the SP
m_pRecordSet->CursorType=adOpenStatic;
m_pRecordSet=m_pCommand->Execute(NULL,NULL,adCmdStoredProc);
return m_pRecordSet;


---In the above code.Eventhogh i assigned "adOpenStatic" to CursorType it is not replicating it is defaultly taking the
"adOpenForwardOnly".


//////////
_RecordsetPtr pRst;
CString strTemp;
pRst.CreateInstance(__uuidof(Recordset));
pRst=GetData(1);
if(pRst!=NULL)
{
int nCount=(int)pRst->RecordCount;
strTemp.Format("%d",nCount);
AfxMessageBox(strTemp);
}
else
{
AfxMessageBox("Recordset null");
}
pRst.Close();
pRst.Release();
/////////////////////////


----Can u tell where i have to set the CursorType?

Once again i am waiting for your reply...
thanks in advanceRose | [Rose] Rose | [Rose] Rose | [Rose]


anju
GeneralTrying to close Access DB while app running... Pin
LukeV21-Nov-02 9:11
LukeV21-Nov-02 9:11 
GeneralRe: Trying to close Access DB while app running... Pin
Rob Graham21-Nov-02 10:14
Rob Graham21-Nov-02 10:14 
GeneralRe: Trying to close Access DB while app running... Pin
LukeV22-Nov-02 3:10
LukeV22-Nov-02 3:10 
GeneralRe: Trying to close Access DB while app running... Pin
Rob Graham22-Nov-02 8:17
Rob Graham22-Nov-02 8:17 
GeneralOpinon: Direct remote access to SQL Server Pin
clintsinger21-Nov-02 6:17
clintsinger21-Nov-02 6:17 
GeneralRe: Opinon: Direct remote access to SQL Server Pin
Rob Graham21-Nov-02 8:04
Rob Graham21-Nov-02 8:04 
GeneralSQL Server OLEDB Provider and Narrow Characters Pin
Jörgen Sigvardsson20-Nov-02 22:57
Jörgen Sigvardsson20-Nov-02 22:57 
GeneralSQL Server Syntax for a CROSSTAB QUERY from MSAccess Pin
acosmin19-Nov-02 22:42
acosmin19-Nov-02 22:42 
GeneralRe: SQL Server Syntax for a CROSSTAB QUERY from MSAccess Pin
Nick Parker20-Nov-02 8:30
protectorNick Parker20-Nov-02 8:30 
GeneralSQL Server Syntax for a CROSSTAB QUERY in MSAccess Pin
acosmin19-Nov-02 22:39
acosmin19-Nov-02 22:39 
GeneralUser / system objects Pin
leppie19-Nov-02 12:22
leppie19-Nov-02 12:22 
QuestionCreate table and choosing a datetime format ? Pin
Bart-Man19-Nov-02 9:05
Bart-Man19-Nov-02 9:05 
AnswerSolution to my problem Pin
Bart-Man19-Nov-02 10:34
Bart-Man19-Nov-02 10:34 
GeneralMove data from SQL Srever to Access Pin
Ravish18-Nov-02 23:28
Ravish18-Nov-02 23:28 
GeneralRe: Move data from SQL Srever to Access Pin
Michael P Butler18-Nov-02 23:38
Michael P Butler18-Nov-02 23:38 
GeneralRe: Move data from SQL Srever to Access Pin
Paul Watson19-Nov-02 10:57
sitebuilderPaul Watson19-Nov-02 10:57 
GeneralSQL help...actually mySQL sorry Pin
Hockey17-Nov-02 19:52
Hockey17-Nov-02 19:52 

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.