Question

What should my PDO constructor/DSN/connection string look like to connect to a SQL Server 2005 database?

$dbh = new PDO('??');
Was it helpful?

Solution

Look at the Connection Strings site. It always helps me, or this post.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top