我创建了一个页面webconfig.asp
。此页面提供整个ASP网站的连接字符串。但我不知道如何给连接字符串。
我做了这个
Application("asd")="Data Source=PANKIL-PC\PANKIL;Initial Catalog=idoms;Integrated Security=True; providerName=System.Data.SqlClient "
但这没有用。我的应用程序每次都会超时
答案 0 :(得分:0)
System.Data.SqlClient仅适用于.net。使用oledb提供者为经典asp这样:
constr = "Provider=SQLOLEDB;Data Source=PANKIL-PC\PANKIL;Initial Catalog=idoms;Integrated Security=SSPI"