News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Ligaya Turmelle's Blog:
SQL Server DNS
December 14, 2006 @ 16:10:00

Working with multiple databases in your scripts can be a pain at times as Ligaya Turmelle found out in getting a PDO connection working to a SQL Server in one of her scripts.

My DSN just was not right and wouldn't play - my host string was off and any permutation I used wasn't working. Looked at the PDO docs, the DSN docs in the manual, connectionstrings.com and no love.

Her final fix involved setting up an "instance" of her SQL server to point to the host. Her code is included.

0 comments voice your opinion now!
sqlserver pdo connect database example dsn sqlserver pdo connect database example dsn


blog comments powered by Disqus

Similar Posts

Dave Marshall's Blog: Traits in PHP 5.4 - HelloWorld with Logging Trait

PHPMaster.com: Type Hinting in PHP

Christopher Jones' Blog: Highly Scalable Connection Pooling in PHP

Job Posting: WildCog Seeks Senior Database Engineer (San Francisco/Mountain View, CA)

Richard Thomas' Blog: Pjq becomes jQPie - jQuery PHP interface extension


Community Events





Don't see your event here?
Let us know!


threedevsandamaybe project bugfix series laravel code release framework introduction interview podcast api list developer configure application library community wordpress language

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework