4

I've written a simple MVC3 application and followed a tutorial on how to set up authenticated users. The tutorial used a SQL server Express database.

Is it possible to use an Oracle database instead of SQL server?

Is it just a case of changing the connection string in the web.config to point at the Oracle database... or is it a bit more in-depth than that?

<connectionStrings>
        <add name="ApplicationServices" 
             connectionString="data source=.\SQLEXPRESS;Integrated     Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true"
             providerName="System.Data.SqlClient" />
</connectionStrings>

2 Answers 2

2

Here's a tutorial you may checkout. It uses the ODP.NET driver.

Sign up to request clarification or add additional context in comments.

Comments

0

It's much more in-depth than changing the connection string in the web.config.

  1. you need a provider for Oracle
  2. sqlServer supports Integrirty Authentication which is harder to accomplish with Oracle

3 Comments

should I be looking at the standard ODP or the entity framework beta 3? oracle.com/technetwork/topics/dotnet/index-085163.html
Depends if your using the EntityFramework or not, if you do then you need the BETA version
I ended up writing a custom provider to work with either SQL or Oracle databases (the 2 we use at work).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.