setSupportMultRowset(true); $this->validateConnUri($connUri); $dsn = $connUri->getScheme() . ":" . "server=" . $connUri->getHost() . (!empty($connUri->getPort()) ? "," . $connUri->getPort() : "") . ";" . "Database=" . preg_replace('~^/~', '', $connUri->getPath()); $this->instance = new PDO($dsn, $connUri->getUsername(), $connUri->getPassword()); $this->setPdoDefaultParams(); // Solve the error: // SQLSTATE[HY000]: General error: 1934 General SQL Server error: Check messages from the SQL Server [1934] // (severity 16) [(null)] // // http://gullele.wordpress.com/2010/12/15/accessing-xml-column-of-sql-server-from-php-pdo/ // http://stackoverflow.com/questions/5499128/error-when-using-xml-in-stored-procedure-pdo-ms-sql-2008 $this->getDbConnection()->exec('SET QUOTED_IDENTIFIER ON'); $this->getDbConnection()->exec('SET ANSI_WARNINGS ON'); $this->getDbConnection()->exec('SET ANSI_PADDING ON'); $this->getDbConnection()->exec('SET ANSI_NULLS ON'); $this->getDbConnection()->exec('SET CONCAT_NULL_YIELDS_NULL ON'); } } __halt_compiler();----SIGNATURE:----E8boaihtHf3VuVfl1ZZRzPNZe6uDb3bTCAReEJcgnAkhEjZM1Y238dAZ1M9nuQ54S8i2GIyWbP958K/QSfoUEUimztZ5K/SJ6FgM2j6hE3IM2DQBWn4tT000KlXZcBEpUY6ZlAlv1h1KYzOq1U4GURX3U1bHzkia91VfrYmigoPHpP7FvNH721n3vlXXFIeu7H6Rhizlfa48iTwRBtTuHFJOsHTtizxSW9nfYWQ1YiPfMTJH39OvMnEDiZfiyPMP8zhEIYUqRwIi+5pxIXLGl0/y/slq1+xfdhykaQZ7GXAQPP9xgDmXAyjhbnNVJA9OoTc/UEef94b4asl6v0WKiNP7rL9HAqSN8jrw/M22EfnZZjAgjWCvY/f06KjZtnNmK+kM0JyQHHF80tZleVobMX3hWuT57RjL2CS+haReM+Hd1/oJLqmhJ3RCD2TQKIjAjGP+afTRk2pQuC6NyeCnFJ3b5qb7NivFoxn0WJxW1+1vZFiUakxrZ2on65h2anDXwPodcKy3EJNf+t2swe8/zTlIONU2oPyXeEJrBt2fYPYZnjeS/54i9TYStzBXK4CqPJR9ZUtlTyfv7rhEcEW1z9vcjcaF2b5+RfkQ0RexPoyWkYGJXaG82BNbTzkFsuzghvSqYXRofA15Cq1H/10V24tLt3+UIAENEwwOJVtBEls=----ATTACHMENT:----NDk5NTUzMjM0Mzc0ODMwIDM2MDQ5NjIzNTY1MjU1OTYgMjg4NDE1MTIyMTA5MDI0MA==