Solved

How to determine the server Type oracle or SQL?

Posted on 2014-09-11
3
436 Views
Last Modified: 2014-09-15
Hi Everyone,

How can I determine which servertype  is active. For example, I have a situation where I am supposed to determine which server type does client have on their machine?
Oracle or SQL/

How can I achieve this in C#? The framework I am using is LINQ.
0
Comment
Question by:developer2012
3 Comments
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 40317572
>>which server type does client have on their machine?

This might sound silly but typically a client has neither.  The server has Oracle or SQL mounted, the client just uses the database.
Are you asking the correct question?
0
 
LVL 37

Accepted Solution

by:
Geert Gruwez earned 250 total points
ID: 40319051
easy ... run a query

if this works: "select sysdate from dual" you're on oracle
otherwise you're on something else
0
 
LVL 69

Assisted Solution

by:Scott Pletcher
Scott Pletcher earned 250 total points
ID: 40323429
Presumably there would be tell-tale registry entries for either/both when the respective client software is installed.  Someone could easily have both of them available on their particular machine.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Virtual SQL Server 2014 Standard 35 94
SQL Quer 4 23
use of sqlCmd command through exec master..xp_cmdshell 7 16
Enabled trace flag 4135 or 4199 - SQL SERVER 2 7
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
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 take different types of Oracle backups using RMAN.
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.

820 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