Click here to Skip to main content
15,928,281 members
Home / Discussions / Database
   

Database

 
GeneralI need a SQL statement.... Pin
Mazdak14-Mar-02 3:16
Mazdak14-Mar-02 3:16 
GeneralRe: I need a SQL statement.... Pin
Omer S.14-Mar-02 3:20
Omer S.14-Mar-02 3:20 
GeneralRe: I need a SQL statement.... Pin
Mazdak14-Mar-02 3:59
Mazdak14-Mar-02 3:59 
GeneralRe: I need a SQL statement.... Pin
sreejith14-Mar-02 3:26
sreejith14-Mar-02 3:26 
GeneralRe: I need a SQL statement.... Pin
Mazdak14-Mar-02 4:00
Mazdak14-Mar-02 4:00 
GeneralPaging Recordset problem Pin
Philip Patrick13-Mar-02 22:37
professionalPhilip Patrick13-Mar-02 22:37 
GeneralProblem to install DAO Components Pin
Cheickna13-Mar-02 22:23
Cheickna13-Mar-02 22:23 
GeneralADO test with MySQL Pin
Michael A. Barnhart12-Mar-02 0:18
Michael A. Barnhart12-Mar-02 0:18 
What is sinfully wrong with the below implementation?
I am just doing some simple learning experiments and the below code is 2000 times slower then using MySQL's api. If that kind of difference was typical no one would be using ADO. So I assume it is missing something standard.

CADODatabase MyADO;
CString ConnectionString = "DRIVER={MySQL ODBC 3.51 Driver};\
SERVER=localhost;\
PORT=986;\
DATABASE=genealogy;\
USER=user;\
PASSWORD=pass;\
OPTION=4;";
if(MyADO.Open(ConnectionString))
{
Person *MyPer;
long int pnum = Persons.GetSize();
long int newid;
long int i;
CString sql;
for (i=1;i<pnum;i++)
{
MyPer = (Person*)Persons[i];
if(MyPer!=NULL)
{
sql.Format("INSERT INTO ind VALUES (%d,'%s','%s','%s',%s,%s,%d);",
MyPer->id,MyPer->first,MyPer->last,MyPer->sex,NULL,NULL,0);
MyADO.Execute(sql);
}
}
MyADO.Close();
}


Good ideas are not adopted automatically.
They must be driven into practice with courageous patients. -Admiral Rickover. ...
GeneralODBC-Excel troubles Pin
AlexEg11-Mar-02 2:41
AlexEg11-Mar-02 2:41 
QuestionHow would I do this....? Pin
Andrew Peace10-Mar-02 11:13
Andrew Peace10-Mar-02 11:13 
AnswerRe: How would I do this....? Pin
markkuk10-Mar-02 20:15
markkuk10-Mar-02 20:15 
GeneralRe: How would I do this....? Pin
Andrew Peace11-Mar-02 7:50
Andrew Peace11-Mar-02 7:50 
GeneralNeed some information about VBA,Thank you! Pin
big20029-Mar-02 21:22
big20029-Mar-02 21:22 
GeneralNeed some information about VBA,Thank you! Pin
9-Mar-02 20:55
suss9-Mar-02 20:55 
Questionwhat's wrong with this? Pin
Mazdak9-Mar-02 4:41
Mazdak9-Mar-02 4:41 
AnswerRe: what's wrong with this? Pin
Mazdak9-Mar-02 6:14
Mazdak9-Mar-02 6:14 
GeneralADO.NET Pin
Mazdak8-Mar-02 20:57
Mazdak8-Mar-02 20:57 
GeneralRe: ADO.NET Pin
Mazdak9-Mar-02 6:15
Mazdak9-Mar-02 6:15 
GeneralTable List Pin
6-Mar-02 16:49
suss6-Mar-02 16:49 
GeneralRe: Table List Pin
AndyG6-Mar-02 17:30
AndyG6-Mar-02 17:30 
GeneralRe: Table List Pin
San6-Mar-02 17:46
San6-Mar-02 17:46 
GeneralRe: Table List Pin
AndyG6-Mar-02 18:17
AndyG6-Mar-02 18:17 
GeneralRe: Table List Pin
San6-Mar-02 19:17
San6-Mar-02 19:17 
GeneralRe: Table List Pin
6-Mar-02 17:46
suss6-Mar-02 17:46 
GeneralTeach me,come in please! Pin
big20026-Mar-02 3:21
big20026-Mar-02 3:21 

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.