> I have a assignment of vc++.net and sybase to populate data and
> generate reports which is the best one?
Best in what way? Each has it's strengths and weaknesses.
ODBC - portable but tedious
OLE-DB - performant but complex
ADO - easy but less efficient
If what you need is reports, your best bet would be to forget about trying
to implement them in C++ and use a reporting tool such as SQL Server
reporting services (which can report on data in non-SQL server stores) or
Crystal Reports, or many others.
> is OLEDB more efficient than ODBC?i think OLEDB itself is a layer on
> the ODBC..then how it can be?
OLE DB is not a layer on ODBC, although it can be. There's an OLE-DB
provider that adapts any ODBC data source, but generally OLE-DB providers
directly access the underlying data (e.g. for SQL Server, Sybase, Oracle at
least).
-cd