我有一个运行SSIS包的SQL服务器作业.此作业有9个步骤,每个步骤都从不同的数据库中提取数据.连接字符串在每个步骤中定义为参数.
我在运行作业时遇到以下错误.
Executed as user: USER\MYSERVER$. Microsoft (R) SQL Server Execute Package Utility Version 10.50.1600.1 for 64-bit Copyright (C) Microsoft Corporation 2010. All rights reserved.
Started: 5:50:55 PM Error: 2013-06-21 17:50:55.44
Code: 0xC0016016
Source:
Description: Failed to decrypt protected XML node "DTS:Password" with error 0x8009000B "Key not valid for use in specified state.". You may not be authorized to access this information. This error occurs when there is a cryptographic error. Verify that the correct key is available. End Error …Run Code Online (Sandbox Code Playgroud) 我有一个用 C# 开发的网站。该网站将托管在我们组织的本地内联网中。用户使用 Windows 身份验证通过其 Windows ID 进行身份验证。当用户访问该网站时,我想在用户的活动目录中显示图片。
这段代码使我能够获取用户图像。图像Response.BinaryWrite(bb); Response.Flush();将显示在空白页面中。相反,我想在同一页面的 div 内显示我的图片。我怎样才能做到这一点?
using System;
using System.DirectoryServices;
using System.Linq;
namespace thumbnailTest
{
public partial class Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
String myUser = User.Identity.Name.Split('\\')[1];
if (myUser == null)
{
Response.Redirect("app_graphics/user.jpg");
}
Response.ContentType = "image/jpeg";
Response.Clear();
Response.BufferOutput = true;
DirectoryEntry de = new DirectoryEntry();
de.Path = "LDAP://";
DirectorySearcher search = new DirectorySearcher();
search.SearchRoot = de;
search.Filter = "(&(objectClass=user)(objectCategory=person)(sAMAccountName=" + myUser + "))";
search.PropertiesToLoad.Add("samaccountname");
search.PropertiesToLoad.Add("thumbnailPhoto"); …Run Code Online (Sandbox Code Playgroud) 嗨我必须在转发器中显示分层信息(有四个级别).为此,我决定使用嵌套的转发器控件.我在MSDN上发现了这篇文章,http://support.microsoft.com/kb/306154,它展示了如何将嵌套转发器用于两个级别的信息.有人可以帮我把它扩展到四个级别吗?一个示例代码将非常适合.谢谢.
可以说我必须在我的数据库中存储以下信息,

现在我的数据库表的设计和结构将如下所示,

在以后的日子里,如果我必须添加另一个子类别级别,我将如何在不更改数据库结构的情况下实现这一目标?
我听说过将列定义为表中的行数据,并使用pivot来稍后提取详细信息......这是实现此目的的正确方法吗?
有人可以请教导我或指导我正确的方向吗?提前致谢...
:)