I think I should've put this question in this forum first, but instead i put it in a foxpro forum. Please don't think I'm trying to double-post. here's my post:
I'm trying to do an insert statement like a batch insert from C++ using an ODBC function. Regular Insert statements work, but I want to send a string that will execute all of these statments like a script, like this:
INSERT INTO tblPeople (Firstname, Lastname) VALUES ('John','Doe');
INSERT INTO tblPeople (Firstname, Lastname) VALUES ('Jane','Doe');
INSERT INTO tblPeople (Firstname, Lastname) VALUES ('Mary','Doe');
It doesn't seem to work. I'd like to know if anyone here has any tips or knowledge on how to do this. Thanks!!
bdiamond
I'm trying to do an insert statement like a batch insert from C++ using an ODBC function. Regular Insert statements work, but I want to send a string that will execute all of these statments like a script, like this:
INSERT INTO tblPeople (Firstname, Lastname) VALUES ('John','Doe');
INSERT INTO tblPeople (Firstname, Lastname) VALUES ('Jane','Doe');
INSERT INTO tblPeople (Firstname, Lastname) VALUES ('Mary','Doe');
It doesn't seem to work. I'd like to know if anyone here has any tips or knowledge on how to do this. Thanks!!
bdiamond