Pervasive Data Provider for .NET

What are the advantages of using the Pervasive data provider for .NET instead of the generic System.Data.Odbc provider and just passing in the Pervasive driver name?
LVL 1
GeekHipsterAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mirtheilSoftware DeveloperCommented:
The main advantage is that the Pervasive provider is Managed and avoids the overhead of the ODBC layer on the client.  Both communicate to the server using the same protocol.

I haven't done any testing in a while but when it first came out, I found that the data provider was faster than using ODBC.  I can't find my numbers to support that though.  

0
GeekHipsterAuthor Commented:
I'm not sure I understand how the Pervasive provider is any more or less "managed" than the System.Data.Odbc provider... they're both managed code are they not?  I suppose I see how a certain layer is removed because the Pervasive provider already knows what driver to use... but does that really matter?  There must be some good reason they continue to release new versions... otherwise why bother?
0
mirtheilSoftware DeveloperCommented:
You're right, both providers are Managed but the System.Data.Odbc uses the Pervasive ODBC driver and the MS ODBC Driver Manager both of which are unmanaged.  

As far as why bothering, I just prefer to use "native" drivers rather than ODBC.  
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

GeekHipsterAuthor Commented:
I'm still sort of wondering what the answer is, personal preferences aside.

0
mirtheilSoftware DeveloperCommented:
The only advantages of using the native Managed provider is that it is fully managed (up to the engine) where as using ODBC, you get to unmanaged code faster and have two additional layers (MS ODBC Driver Manager and Pervasive Client ODBC driver).  Because of this, you usually see better performance.
The only advantage of using ODBC is that it is not tied to a "native" database driver and might be easier to use multiple databases (I say might because unless you are only using simple SQL, you'll probably have to deal with syntax differences).  
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
GeekHipsterAuthor Commented:
I never tried benchmarking the two, but a few simple queries are showing the Pervasive provider to be significantly faster for me, thanks muchly.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Databases

From novice to tech pro — start learning today.