我需要使用Windows身份验证对远程SQL Server进行身份验证.远程SQL Server在另一个域中运行,该域与我当前通过Windows登录的域没有信任关系.我无法使用SQL Server身份验证,因为SQL Server配置为仅信任域身份验证.
Windows本身允许通过用户界面进行此类模拟:

我之前使用过WindowsImpersonationContext类System.Security.Principal,但似乎依赖于属于受信任域的所需用户名.
我正在使用Visual Studio 2012,最多可以使用Microsoft.Net 4.5,最好是VB,但如果需要,我可以轻松地从C#转换代码.
我正致力于片段转换.当我用第二个片段替换第一个片段时,它出现在第一个片段下面.我希望它移动到第一个片段之上.我怎样才能做到这一点?
fragmentTransaction.setCustomAnimations(animEnter, animExit, animPopEnter, animPopExit);
fragmentTransaction.replace(R.id.fragmentListView, fragment);
fragmentTransaction.addToBackStack(null);
fragmentTransaction.commit();
Run Code Online (Sandbox Code Playgroud) android android-custom-view android-ui android-fragments android-view
假设我写了两个网站,一个在C#中,另一个在VB中执行相同的操作,我在两个站点上都设置了相同的安全性.
VB网站的安全性会低于C#网站吗?
我相信VB与C#没有额外的安全问题,但我想确认我是对的.