<div dir="ltr"><div><div>Assuming you need SQLite since you are developing for SailfishOS the first result here seems to be what you are looking for:<br><a href="https://www.google.nl/search?q=c%2B%2B+sqlite">https://www.google.nl/search?q=c%2B%2B+sqlite</a><br><br></div>Instead of creating one SQLite object you create 2 or more, one for each database.... though if you are opening a lot of databases you might want to consider if they shouldn't all be different tables in the same database.<br><br></div>Of course you could also be more forthcoming about what exact db you're trying to connect to and what you tried so that we don't do double work for you, I believe as a community we need to be helpful etc. but as a member looking for help I also need to do my due diligence, without that expect short basic answers or none...<br><div><div><br></div><div>The general idea should be along these lines:<br><br></div><div>sqlite3 *db1, *db2;<br></div><div>sqlite_open(path1, &db1);<br></div><div>sqlite_open(path2, &db2);<br><br></div><div>Regards,<br></div><div>Eli<br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-09-14 18:03 GMT+03:00 Chris Walker <span dir="ltr"><<a href="mailto:cdw_nokiaqt@the-walker-household.co.uk" target="_blank">cdw_nokiaqt@the-walker-household.co.uk</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, 14 Sep 2016 00:19:02 +0300<br>
"E.S. Rosenberg" <<a href="mailto:es.rosenberg%2Bsailfishos.org@gmail.com">es.rosenberg+sailfishos.org@<wbr>gmail.com</a>> wrote:<br>
<br>
> 2 different connection objects?<br>
><br>
> 2016-09-08 16:40 GMT+03:00 Chris Walker <<br>
> <a href="mailto:cdw_nokiaqt@the-walker-household.co.uk">cdw_nokiaqt@the-walker-<wbr>household.co.uk</a>>:<br>
><br>
> > Can anybody point me in the direction of some C++ code to connect to<br>
> > two SQL databases please?<br>
<br>
</span>I'd like to point out the wording of my question? I said ".. point me in<br>
the direction of some code". So can anybody help with that please?<br>
<div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.<wbr>sailfishos.org</a><br>
</div></div></blockquote></div><br></div>