OLE DB Templates rules

Frederic Gos <[email protected]> Fri, 2 Aug 2002 16:12:45 +0200
Newsgroups gmane.comp.windows.devel.oledb.devel
Message-ID <ED58407D3AF3D211B7B00000F8D02EB9CEE1BD@MAILPROD01>
Hi,

I'n trying to get the rules straight when using teh OLE DB templates of VC7.


Depending on how you wrote the sp's, the order og the tempalte functions
you must call change. As an example, if you have an SP with output params
that also retuns a rowset, you have to call close before getting access to
the
params.

The question is: Is there a summary of these rules? Are they consistent?

What I'm trying to do is to write code that will do the right thing
everytime, no matter
how the sp was written. The only assumption would be that all metadata is
known at compile
time. No Dynamic or Manual accessors.

Is that naive?
Do I even make sense? :-)

cheers
Frederic

You can read messages from the OLEDB_DEV archive, unsubscribe from OLEDB_DEV,
or subscribe to other DevelopMentor lists at http://discuss.develop.com.