Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8208969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T09:33:25+00:00 2026-06-07T09:33:25+00:00

This is the ConnectionStrings.com string of ODP.NET, great, but what is Data Source? Data

  • 0

This is the ConnectionStrings.com string of ODP.NET, great, but what is Data Source?

Data Source=TORCL;User Id=someUser;Password=son28dnn;

Is it a DSN in Control Panel?

A server name?

A TNS names service name?

Thanks

Luke

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T09:33:26+00:00Added an answer on June 7, 2026 at 9:33 am

    If you are using ODP.NET with TNS which is nothing but one of the adapter for connecting to the oracle database.The file for maintaining the TNS Entries is Tnsnames.Ora

    A Sample entry in tnsnames.ora(path for the file is normally ORACLE_HOME\NETWORK\ADMIN)sample entry looks like the below

    TORCL=(DESCRIPTION=
    (ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=MyHost)   (PORT=MyPort)))    
    (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=MyOracleSID)))
    

    Here TORCL is an alias for the Data source
    ,MyHost is your Database server name or Ip Address,Port is the database listener port and MyOracleSID is your Oracle Service

    Hence

    Data Source=TORCL;User Id=myUsername;Password=myPassword;
    

    is same as

    Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=MyHost)  (PORT=MyPort)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=MyOracleSID)));User Id=myUsername;Password=myPassword; 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

heelo this is my connection string <connectionStrings> <add name=DefaultConnection connectionString=Data Source=.\SQLEXPRESS;Initial Catalog=Test;Integrated Security=True providerName=System.Data.SqlClient;Password=;User
I've found this at connection strings.com http://connectionstrings.com/mysql Do I need to download connector-net from
this is my common app.config <?xml version=1.0 encoding=utf-8 ?> <configuration> <connectionStrings> <add name=BO connectionString=Data
I have connection strings that look like: Data Source=mydomain.com;Initial Catalog=DB;Integrated Security=True This works from
I found this code on the MSDN site here http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlconnection.open.aspx : private static void
I've got 3 connectionstrings in web.config, and I used theirs like this: using (SqlConnection
[...] public DataSet ReturnPromoMagazinesDs() { MySql.Data.MySqlClient.MySqlConnection mysqlConnection = new MySql.Data.MySqlClient.MySqlConnection(this.connectionString); MySql.Data.MySqlClient.MySqlCommand mysqlCommand = new
I have this sample code: DirectoryEntry _entry = new DirectoryEntry( connectionString, this.userPrinicipalName, this.password, AuthenticationTypes.SecureSocketsLayer
The connection string generated by entity framework looks like this. <add name=ETestEntities connectionString=metadata=res://*/Models.TestModel.csdl|res://*/Models.TestModel.ssdl|res://*/Models.TestModel.msl;provider=System.Data.SqlClient;provider connection
Is there any official write-up what forms can Data Source field take in sql

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.