I haven't finalized the DBMS for my application ( MSDE or SQL Server or Jet ? ) and would like to hedge my bets by writing generic code. How may I determine whether a data source is Unicode or not and how do I handle issues such as buffer size to allocate, particular string functions to use etc. in my programs?