Re: [sqlite] How do I attach a database from C++? -- RESOLVED

2005-08-19 Thread Greg Stark
AM, Puneet Kishor wrote: Greg Stark wrote: On Aug 19, 2005, at 9:37 AM, Puneet Kishor wrote: Greg Stark wrote: Tom, I appreciate you're help but I'm pretty sure that the semicolon has to be there (well. at least it's required in all the other statements I've written to date

Re: [sqlite] How do I attach a database from C++?

2005-08-19 Thread Greg Stark
On Aug 19, 2005, at 9:37 AM, Puneet Kishor wrote: Greg Stark wrote: Tom, I appreciate you're help but I'm pretty sure that the semicolon has to be there (well. at least it's required in all the other statements I've written to date -- this one statement is part of a much large

Re: [sqlite] How do I attach a database from C++?

2005-08-19 Thread Greg Stark
On Aug 19, 2005, at 9:37 AM, Puneet Kishor wrote: Greg Stark wrote: Tom, I appreciate your help but I'm pretty sure that the semicolon has to be there (well, at least it's required in all the other statements I've written to date -- this one statement is part of a much larger

Re: [sqlite] How do I attach a database from C++?

2005-08-19 Thread Greg Stark
to mark the end of a statement; in code, your statement ends at the end of the string. -Tom -Original Message- From: Greg Stark [mailto:[EMAIL PROTECTED] Sent: Thursday, August 18, 2005 7:38 PM To: sqlite-users@sqlite.org Subject: [sqlite] How do I attach a database from C++? I'm having

[sqlite] How do I attach a database from C++?

2005-08-18 Thread Greg Stark
I'm having difficulty attaching a database from C++. Within my code, I'm using an sqlite3_prepare call: prepareResult = pSqlBundle->sqlite3_prepare (db_, "ATTACH DATABASE 'window_5.sdb' AS W5;", -1, , ); but it returns an error (i.e., prepareResult comes back as SQLITE_ERROR).