Connection string: Difference between revisions
Shadowjams (talk | contribs) m Reverted edits by 115.108.175.58 to last revision by Tabletop (HG) |
|||
Line 22: | Line 22: | ||
[[ru:Строка подключения]] |
[[ru:Строка подключения]] |
||
Anjani Pandey |
Revision as of 05:36, 1 April 2010
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.
Example
This is an example of a Postgres Connection string that will try to connect to wikipedia.com with SSL and a Connection timeout of 180 sec.
DRIVER={PostgreSQL Unicode};SERVER=www.wikpedia.com;SSL=true;SSLMode=require;DATABASE=wiki;UID=wikiuser;Connect Timeout=180;PWD=ashiknoor
References