[阅读: 320] 2005-06-27 01:50:27
our current ASP.NET security settings on shared hosting has all been set to Medium Trust, which blocks the use of OLEDB OR ODBC for MS Access or MSSQL.
You can use System.Data.SqlClient as it is the preferred way to connect to MSSQL in .net and it works in Medium trust on our server.
这什么意思?因为安全设置为中,所以就不支持 OleDB?