|
|
Source code |
1 2 3 4 5 6 7 8 9 10 |
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[IMSSP]: This extension requires either the Microsoft SQL Server 2008 Native Client (SP1 or later) or the Microsoft SQL Server 2008 R2 Native Client ODBC Driver to communicate with SQL Server.
Neither of those ODBC Drivers are currently installed.
Access the following URL to download the Microsoft SQL Server 2008 R2 Native Client ODBC driver for x86:
http://go.microsoft.com/fwlink/?LinkId=163712'
in C:\xampp\htdocs\...\inc\classes\class.PDO.php:16
Stack trace: #0 C:\xampp\htdocs\...\inc\classes\class.PDO.php(16): PDO->__construct('sqlsrv:Server=M...', 'root', '')
#1 C:\xampp\htdocs\...\common.php(14): System\Database\PDO->__construct('sqlsrv:Server=M...', 'root', '')
#2 C:\xampp\htdocs\...\scripts\replacement.php(4): include('C:\xampp\htdocs...')
#3 C:\xampp\htdocs\...\register.php(3): include('C:\xampp\htdocs...')
#4 {main} thrown in C:\xampp\htdocs\...\inc\classes\class.PDO.php on line 16
|
Quoted
Auf deutsch: Ich solle den Microsoft SQL Server 2008 R2 herunterladen, jedoch möchte ich auf einen externen Microsoft-Server [via Remote-Zugriff] zugreifen und nicht auf einen Internen, da die Website und der Microsoft_Server unabhängig agieren sollen.
Quoted
Hierfür habe ich mich zuvor informiert, dass ich dieses Treiber-Paket: SQLSRV20.EXE,
welche alle notwendigen Treiber enthällt. Darunter auch den Treiber php_pdo_sqlsrv_53_ts_vc9.dll.

This post has been edited 2 times, last edit by "Sheldon" (Nov 26th 2011, 7:04pm)
.
|
|
Source code |
1 2 3 4 5 6 7 8 |
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[08001]:
[Microsoft][SQL Server Native Client 10.0]SQL Server Network Interfaces: Connection string is not valid [87]. '
in C:\xampp\htdocs\...\inc\classes\class.PDO.php:16 Stack trace:
#0 C:\xampp\htdocs\...\inc\classes\class.PDO.php(16): PDO->__construct('sqlsrv:Server=M...', 'root', '')
#1 C:\xampp\htdocs\...\common.php(14): System\Database\PDO->__construct('sqlsrv:Server=M...', 'root', '')
#2 C:\xampp\htdocs\...\scripts\replacement.php(4): include('C:\xampp\htdocs...')
#3 C:\xampp\htdocs\...\index.php(3): include('C:\xampp\htdocs...')
#4 {main} thrown in C:\xampp\htdocs\...\inc\classes\class.PDO.php on line 16
|
This post has been edited 4 times, last edit by "Sheldon" (Nov 26th 2011, 11:15pm)
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
$connectionInfo = array( "UID"=>"sa", "PWD"=>"passwort" );
$link = sqlsrv_connect ( "Computername\SQLEXPRESS", $connectionInfo );
Zur Nutzung von sqlsrv_connect(): [url='http://de2.php.net/manual/en/function.sqlsrv-connect.php']http://de2.php.net/manual/en/function.sqlsrv-connect.php[/url]
if(!$link)
{
echo 'Verbindung fehlgeschlagen.';
echo '<pre>';
die( print_r( sqlsrv_errors(), true));
echo '</pre>';
}
else
{
echo 'Alles in Ordnung.';
}
|
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
Array
(
[0] => Array
(
[0] => 08001
[SQLSTATE] => 08001
[1] => -1
[code] => -1
[2] => [Microsoft][SQL Server Native Client 10.0]SQL Server Network Interfaces: Error Locating Server/Instance Specified [xFFFFFFFF].
[message] => [Microsoft][SQL Server Native Client 10.0]SQL Server Network Interfaces: Error Locating Server/Instance Specified [xFFFFFFFF].
)
[1] => Array
(
[0] => HYT00
[SQLSTATE] => HYT00
[1] => 0
[code] => 0
[2] => [Microsoft][SQL Server Native Client 10.0]Login timeout expired
[message] => [Microsoft][SQL Server Native Client 10.0]Login timeout expired
)
[2] => Array
(
[0] => 08001
[SQLSTATE] => 08001
[1] => -1
[code] => -1
[2] => [Microsoft][SQL Server Native Client 10.0]A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible.
Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.
[message] => [Microsoft][SQL Server Native Client 10.0]A network-related or instance-specific error has occurred while establishing a connection to SQL Server.
Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.
)
)
|
This post has been edited 2 times, last edit by "Sheldon" (Nov 28th 2011, 2:39pm)