Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SQLSTATE[IM002] Data source name not found and no default driver specified
- try {
- $connection = new PDO("odbc:Provider=Teradata;DBCName=Tera;Database=DBC;Uid=dbc;Pwd=dbc;");
- /* also tried */
- // $connection = new PDO("odbc:Driver={Teradata Database ODBC Driver 16.10};Server=192.168.1.40;Database=DBC;User=dbc;Password=dbc;");
- } catch (PDOException $e) {
- die('Failed to connect '. $e->getMessage());
- }
Add Comment
Please, Sign In to add comment