SQL Server, PDO, ODBC, sqlsrv Oh my, which one?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
linchatter
Forum Newbie
Posts: 5
Joined: Fri Oct 08, 2010 8:17 am

SQL Server, PDO, ODBC, sqlsrv Oh my, which one?

Post by linchatter »

What is the real difference between sqlsrc or odb_connect. Aren't they both using the same drivers (sql client)? If so, what is the advantage of using one over the other?
I have PDO, odbc_connect, sqlsrv_connect all working in scripts. I know PDO is diff, but should I use sqlsrv_connect over odbc_connect? functionality the same?
Big diff for me, my IDE support odbc_connect.

Very confusing, any help would be fantastic, thanks.
Post Reply