Solved

Using SQL Server and Oracle Database in one project

Posted on 2011-03-02
2
315 Views
Last Modified: 2012-05-11
Currently, we use the PL SQL to connect and query the Oracle database. Software is built on .NET platform (VB, ASP). We have a implementation project in which we need to host our data set in the SQL server database too. May be completely or partially for some specific modules. Some modules might have to use data from both Oracle and SQL Server Databases.

My Question is : Please suggest a memory and cost efficient process to be able to do this. My idea about it is that we just  need to declare respective connection strings in global.asax file and use them appropriately when needed. Right ? Or is there any catch to it ?
0
Comment
Question by:pratz09
2 Comments
 
LVL 11

Accepted Solution

by:
jasonduan earned 500 total points
ID: 35021058
1. Don't "declare respective connection strings in global.asax file". You should put connection string in web.config file
2. in your code, you'll need use "System.Data.OleDb" instead of "System.Data.SqlClient" client so that both Oracle and Sql Server are supported
0
 

Author Closing Comment

by:pratz09
ID: 35027879
Doh ! I meant web.config .. My bad.
Thanks for your input. It was helpful.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now