我在php中安装PDO驱动程序时遇到问题。我目前正在使用PHP 5.6和SQL Server 2008.我去了phpinfo,看起来没有安装驱动程序。
首先,我想问一下这对我来说是否是必要的。我目前正在使用Webmatrix。在Webmatrix中,我可以转到数据库面板并添加一个新数据库。我想要使用的数据库中的所有表都显示在数据库面板中,我可以像使用SQL Server一样使用它。以下代码显示在我的web.config文件中:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<connectionStrings>
<add connectionString="Server=hcdacltrk01pw;Database=Ravi;Trusted_Connection=True" name="Ravi" providerName="System.Data.SqlClient" />
</connectionStrings>
</configuration>
我想知道如何在没有PDO的情况下连接到我的SQL Server数据库,如果我没有PDO,我如何使用select,create table等命令?