Hi! I've to write a c++ application that receives a huge data stream( many thousands of messages per second) and insert it into a MS sql server2008 db (into one or more tables) as fast as possible. I'm new to windows, and amongst so many ways described in msdn, I'm not able to judge the best way to do this, for example: 1. should I use ODBC (using the sql native driver) or OLE db ? is odbc slow? 2. should I try to do a sqlprepare an insert stmt? should I try to bunch a few inserts together? OR should I try a stored procedure? will this be faster? 3. someone's mentioned to explore if windows exposes a tabular data stream API directly (but i couldn't find one, and it's probably a bit more advanced for me right now.)
I'd like to try something fast to run, fast to develop (and hopefully simple). please help, any ideas most appreciated. many thanks!