我在BeforeConnectOuterDataSource中增加了如下代码:
If e.Name = "数据源" Then
If e.User.Type = UserTypeEnum.Developer Then
e.ConnectionString =
"Provider=SQLOLEDB.1;Password=123456
;Persist Security Info=True;User ID=sa;
Initial Catalog=MYDBBAK;
Data Source=77.44.41.47"
Else
e.ConnectionString =
"Provider=SQLOLEDB.1;
Password=123456;Persist Security Info=
True;User ID=sa;
Initial Catalog=MYDBS;
Data Source=77.44.41.47"
End If
End If
报错:
此主题相关图片如下:aa.bmp
然后:
If e.User.Type = UserTypeEnum.Developer Then
e.EditConnectionString()
End If
一样,请指教应该怎么做
[此贴子已经被作者于2013-12-11 11:24:07编辑过]