php串連sqlserver的方法 資料庫開發軟體 資料庫基礎學習 資料庫修複

來源:互聯網
上載者:User
1.下載Microsoft Drivers for PHP for SQL Server 擴充包 它分為2.0和3.0版

本。(本人使用的是2.0版本)

這個擴充包對電腦的作業系統有要求,對應的系統使用對應的版本。

3.0 所支援的作業系統
Windows Server 2008 R2 SP1
Windows Vista SP2
Windows Server 2008 SP2
Windows 7 SP1

2.0 所支援的作業系統
Windows Server 2003 Service Pack 1
Windows XP Service Pack 3
Windows Vista Service Pack 1 or later
Windows Server 2008
Windows Server 2008 R2
Windows 7

所以本次執行個體使用的是 2.0 裡面php_sqlsrv_53_ts_vc9.dll 擴充 ;

2.將php_sqlsrv_53_ts_vc9.dll檔案複製到php的擴充檔案夾 (一般的都在

php/ext檔案夾下面);
3.將此php_sqlsrv_53_ts_vc9.dll檔案拷貝到系統所在盤的system32中;
4.開啟php.ini檔案,在extension=php_mysql.dll 下面一行添加

extension=php_sqlsrv_53_ts_vc9.dll

5.安裝驅動程式X86 Package(sqlncli.msi)

如果是串連sql2005則安裝sqlncli2005

如果是串連sql2008則安裝sqlncli2008

如果是串連sql2015則安裝sqlncli2015

6.重啟apache

以上就介紹了php串連sqlserver的方法,包括了sqlserver方面的內容,希望對PHP教程有興趣的朋友有所協助。

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.