Solved

How to determine the server Type oracle or SQL?

Posted on 2014-09-11
3
441 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
Via a live example, show how to take different types of Oracle backups using RMAN.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

739 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