用VB编写了一个操作数据库的文件,但是用以下2种方式都不行:"Provider=SQLOLEDB.1;Password=sa;Persist Security Info=True;User ID=sa;Initial Catalog=master;Data Source=localhost"
"driver={SQL Server};SERVER=localhost;DATABASE=master;UID=sa;pwd=sa"提示:[Microsoft][ODBC 驱动程序管理器] 未发现数据源名称并且未指定默认驱动程序但是,在IIS里面用ASP编写程序,然后用以上2种方式连接都可以,这是为什么呢?怎么解决?谢谢了。