SQL OLEDB provider: connection string to Failover partner

We're trying to connect to SQL 2012 STD with Database Mirroring enabled. We have 2 servers: DB1 (Principal) and DB2 (Mirror).

We're using connection string: Provider=SQLOLEDB;Data Source=DB1;Failover Partner=DB2;Database=databasename;Uid=username;Pwd=password;

When DB1 is in principal role, everything works OK. But, when DB1 goes down, and DB2 (Mirror) becomes principal, we receive an error: "Invalid connection string attribute"

We tried to change Data Source from server name to IP, to IP:1433... without success. We also tried to change parameter "Failover Partner" to "FailoverPartner", also without success.

Is it possible to connect to DB mirror with SQLOLEDB provider at all?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

Vadim RappCommented:
Not possible with SQLOLEDB, but possible with SQLNCLI11 or SQLNCLI

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
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
Microsoft SQL Server

From novice to tech pro — start learning today.