sefa selim
Öğrenci
- Katılım
- 28 Aralık 2013
- Mesajlar
- 2
- Reaksiyon puanı
- 0
- Puanları
- 0
Microsoft SQL server 2008 kullanıyorum şu şekilde bağlantı kullamıyorum
ve ekran çıktısı şöyle
bağlantı yok!
Array ( [0] => Array ( [0] => IMSSP [SQLSTATE] => IMSSP [1] => -49
PHP:
<?php$serverName ="ADMIN";
$connectionInfo=array("Database"=>"sefa");$conn = sqlsrv_connect($serverName,$connectionInfo);if($conn){
echo "Bağlantı var!<br />";
}else { echo "bağlantı yok!<br />"; die(print_r(sqlsrv_errors(),true)); }
?>
bağlantı yok!
Array ( [0] => Array ( [0] => IMSSP [SQLSTATE] => IMSSP [1] => -49
Kod:
=> -49 [2] => This extension requires the Microsoft SQL Server 2012 Native Client. Access the following URL to download the Microsoft SQL Server 2012 Native Client ODBC driver for x86: http://go.microsoft.com/fwlink/?LinkId=163712 [message] => This extension requires the Microsoft SQL Server 2012 Native Client. Access the following URL to download the Microsoft SQL Server 2012 Native Client ODBC driver for x86: http://go.microsoft.com/fwlink/?LinkId=163712 ) [1] => Array ( [0] => IM002 [SQLSTATE] => IM002 [1] => 0 [code] => 0 [2] => [Microsoft][ODBC Driver Manager] Veri kaynağı adı bulunamadı ve varsayılan sürücü belirtilmemiş [message] => [Microsoft][ODBC Driver Manager] Veri kaynağı adı bulunamadı ve varsayılan sürücü belirtilmemiş ) )
[/FONT][/COLOR][/U][COLOR=#000000][FONT=Times New Roman]
[/FONT][/COLOR]kodda yanılmıyorsam 2012 bağlantısı olarak oldugunu düsünüyorum
dosyalarıda wampp ekledim
php_sqlsrv_54_ts.dll
php_pdo_sqlsrv_54_ts.dll
ama benim kisi 2008 kafam iyice karıstı :D
bu forumda daha öncelerden böyle bi konu vardı
[URL]http://forum.shiftdelete.net/web-programlama-php-asp-html-css-javascript-jquery-extjs/334674-php-ile-mssql-e-baglanma.html[/URL]
ona göre yapmaya çalıştım birtakım hatalar karşılaştım.