downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  

<MS SQL Server (PDO)Firebird/Interbase (PDO)>
Last updated: Thu, 26 Jun 2008

PDO_DBLIB DSN

(No version information available, might be only in CVS)

PDO_DBLIB DSN — Connecting to Microsoft SQL Server and Sybase databases

Description

The PDO_DBLIB Data Source Name (DSN) is composed of the following elements:

DSN prefix

The DSN prefix is

sybase:
if PDO_DBLIB was linked against the FreeTDS libraries,
mssql:
if PDO_DBLIB was linked against the Microsoft SQL Server libraries, or
dblib:
if linked against any other variety of DB-lib.

host

The hostname on which the database server resides.

dbname

The name of the database.

Examples

Example #1 PDO_DBLIB DSN examples

The following examples show a PDO_DBLIB DSN for connecting to Microsoft SQL Server and Sybase databases:

mssql:host=localhost;dbname=testdb
sybase:host=localhost;dbname=testdb
dblib:host=localhost;dbname=testdb



add a noteadd a note User Contributed Notes
Connecting to Microsoft SQL Server and Sybase databases
There are no user contributed notes for this page.




<MS SQL Server (PDO)Firebird/Interbase (PDO)>
Last updated: Thu, 26 Jun 2008
show source | credits | sitemap | contact | advertising | mirror sites
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://phpbuilder.com/
Last updated: Tue Nov 1 20:20:59 2005 EST
Columns / Articles | Tips / Quickies | News | News Linking and RSS Feeds | Shared Code Library
Mail Archives | Support / Discussion Forums | Get Started! Links | Contribute! | Docs