数据库连接的问题
程序如下:
var recordSet = Server.CreateObject("ADODB.Recordset");
recordSet.ActiveConnection = connectString;
recordSet.Source = "SELECT * FROM userInformation where userIdentifier='" + userID + "'";
recordSet.CursorType = 0;
recordSet.CursorLocation = 2;
recordSet.LockType = 3;
recordSet.Open();
其中connectString是我定义的系统dsn。为什么会出错?