Solved

How to determine the server Type oracle or SQL?

Posted on 2014-09-11
3
445 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 38

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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
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.

628 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