Connection string

Connection string

In computing, a connection string is a string that specifies information about a data source and the means of connecting to it. It is passed in code to an underlying driver or provider in order to initiate the connection. Whilst commonly used for a database connection, the data source could also be a spreadsheet or text file.

The connection string may include attributes such as the name of the driver, server and database, as well as security information such as user name and password.

Examples

This example shows a Postgres connection string for connecting to wikipedia.com with SSL and a connection timeout of 180 seconds:

DRIVER={PostgreSQL Unicode};SERVER=www.wikipedia.com;SSL=true;SSLMode=require;DATABASE=wiki;UID=wikiuser;Connect Timeout=180;PWD=ashiknoor

Users of Oracle databases can specify connection strings:

External links

References

  1. ^ Watt, Simon; et al. (June 2005). "Configuring SQL*Plus". SQL*Plus User's Guide and Reference: Release 10.2. Redwood City: Oracle Corporation. http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch2.htm#sthref360. Retrieved 2010-08-26. "LOCAL [:] Windows environment variable to specify a connection string. Performs the same function as TWO_TASK on UNIX." 
  2. ^ Kyte, Thomas (2005). Expert Oracle database architecture: 9i and 10g programming techniques and solutions. Apress series. Apress. p. 60. ISBN 9781590595305. http://books.google.com/books?id=TmPoYfpeJAUC. Retrieved 2010-08-26. "The TNS connection string tells the Oracle software how to connect to the remote database. Generally, the client software [...] will read a file calles tnsnames.ora. This is a plaint-text configuration file commonly found in the [ORACLE_HOME]\network\admin directory ([ORACLE_HOME] represents the full path to your Oracle installation directory)." 

Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • String (computer science) — In formal languages, which are used in mathematical logic and theoretical computer science, a string is a finite sequence of symbols that are chosen from a set or alphabet. In computer programming, a string is traditionally a sequence of… …   Wikipedia

  • String Connection — Krzesimir Dębski, Gründer von String Con …   Deutsch Wikipedia

  • String Theory (novels) — String Theory is a trilogy of novels set in the Star Trek universe. Book one, Cohesion , was written by Jeffrey Lang; book two, Fusion , by Kirsten Beyer; and book three, Evolution , by Heather Jarman. The story takes place between seasons four… …   Wikipedia

  • String theory — This article is about the branch of theoretical physics. For other uses, see String theory (disambiguation). String theory …   Wikipedia

  • string — Synonyms and related words: A string, Amati, Cremona, D string, E string, G string, Indian file, Strad, Stradivari, Stradivarius, age group, agree, array, articulation, atone, attune, authority, band, bank, bar, bass, bass viol, battalion, be… …   Moby Thesaurus

  • connection — Synonyms and related words: ESP, Indian file, abutment, abuttal, access, accord, accounting for, acquaintance, act of love, addition, adjacency, adjoiningness, adjunct, adultery, affairs, affiliation, affinity, agent, agglomeration, agglutination …   Moby Thesaurus

  • Database connection — A database connection is a facility in computer science that allows client software to communicate with database server software, whether on the same machine or not. A connection is required to send commands and receive answers. Connections are a …   Wikipedia

  • Cosmic string — Not to be confused with string in string theory. Cosmic strings are hypothetical 1 dimensional (spatially) topological defects which may have formed during a symmetry breaking phase transition in the early universe when the topology of the vacuum …   Wikipedia

  • Drill string — A drill string on a drilling rig is a column, or string, of drill pipe that transmits drilling fluid (via the mud pumps) and torque (via the kelly drive or top drive) to the drill bit. The term is loosely applied as the assembled collection of… …   Wikipedia

  • The String Cheese Incident — Infobox musical artist Name = The String Cheese Incident Img capt = Back: Jason Hann, Michael Travis, Bill Nershi, Keith Moseley Front: Kyle Hollingsworth, Michael Kang Img size = Landscape = yes Background = group or band Origin = flagicon|USA… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”