Well that’s the best part about PDOs is that it’s pretty easy to access any database. Provided you have installed those drivers, you should be able to just do:
$db = new PDO("sqlsrv:Server=YouAddress;Database=YourDatabase", "Username", "Password");
More Related Contents:
- Connect PHP to MSSQL via PDO ODBC
- How to connect to mssql using pdo through PHP and Linux?
- How do I enable php to work with postgresql?
- SQL Server error 1934 occurs on INSERT to table with computed column PHP/PDO
- Can I mix MySQL APIs in PHP?
- Can PHP PDO Statements accept the table or column name as parameter?
- Can I bind an array to an IN() condition in a PDO query?
- PDOException “could not find driver”
- Row count with PDO
- PDO get the last ID inserted
- How do I use password hashing with PDO to make my code more secure? [closed]
- How to view query error in PDO PHP
- PDO::__construct(): Server sent charset (255) unknown to the client. Please, report to the developers
- Insert/update helper function using PDO
- PHP PDO – Bind table name? [duplicate]
- Is the leading colon for parameter names passed to PDOStatement::bindParam() optional?
- How to debug PDO database queries?
- pdo prepared statements with wildcards
- php How do I start an external program running – Having trouble with system and exec
- Insert multiple rows with PDO prepared statements
- Alternative for mysql_num_rows using PDO
- Unknown database error in PHP but it exists in PHPMyAdmin
- How do detect that transaction has already been started?
- Trying to access array offset on value of type bool
- LIKE query using multiple keywords from search field using PDO prepared statement
- return multiple response data in one response
- PDO lastInsertId() always return 0
- Do PHP PDO prepared statements need to be escaped?
- PHP PDO how to run a multiple query request?
- Difference between PDO->query() and PDO->exec()