小编web*_*usa的帖子

为什么SQL Server数据工具使用的VS 2010 shell上的工具箱是空的?

我安装了SQL Server 2012,并将旧的SSIS项目导入其中.一切都很好但是当我尝试编辑我的包时,令人惊讶的是SQL Server数据工具上的工具箱是空的,我不知道如何将这些项目带回来.有人可以帮忙吗?

截图

sql-server ssis visual-studio-2010

15
推荐指数
1
解决办法
1万
查看次数

这个 SQL Server 查询除法计算有什么问题?

我在 SQL Server 2008 R2 数据库上有这个表结构:

  CREATE TABLE FormTest
(   
clientid char(10),
DateSelected date,
A int,
B int,
C int
)
Run Code Online (Sandbox Code Playgroud)

我用以下信息填充了 FormTest 表

clientid        DateSelected      A       B     C
x1              2006-06-09     65150    4921    1
x2              2006-05-05     155926   69092   1
x3              2006-01-20     95603    156892  1
x4              2006-01-20     30704    164741  1
x4              2006-02-03     65150    174834  1
x5              2006-04-28     59629    4921    1
x6              2006-01-27     30704    162356  1
x7              2006-06-30     65150    4921    1
x8              2006-07-10     65150    4921    1
Run Code Online (Sandbox Code Playgroud)

最后,我运行这个 sql 查询:

SELECT clientid, (((a+ …
Run Code Online (Sandbox Code Playgroud)

sql sql-server sql-server-2008

4
推荐指数
1
解决办法
1万
查看次数

JQuery Clone()破坏了我的html.可以多次复制相同代码的替代方案?

我有一个使用JQuery UI选项卡小部件的页面.其中2个标签共享同一条HTML,这只不过是一个简单的HTML表格:

<table border="0" cellpadding="0" cellspacing="0" class="showTable" id="table-person-info">
    <tr>
        <td class="pictureColumn">
            <img alt="Person Photo" src="images/avatar.jpg" id="CurrPersonPhoto" />
        </td>                   
        <td>
            <div id="CurrPersonFullName" class="fullName"></div>
            <b class="popupInfo">Person ID:&nbsp;</b><div id="CurrPersonID" class="popupInfo"></div><br />
            <b class="popupInfo">Hire Date:&nbsp;</b><div id="CurrHireDate" class="popupInfo"></div><br />
            <b class="popupInfo">Tenure:&nbsp;</b><div id="CurrTenure" class="popupInfo"></div><br />
            <b class="popupInfo">Location:&nbsp;</b><div id="CurrLocation" class="popupInfo"></div>
        </td>
        <td style="width:179px;">
            <img src="edit.png" alt="Edit" />
            <img src="log_activity.png" alt="Log activity" />
        </td>
    </tr>
</table>
Run Code Online (Sandbox Code Playgroud)

在ajax调用之后表会更新,并且为了避免重复相同的代码两次,我尝试使用JQuery clone()函数将其注入到我需要显示它的选项卡上的2个点.我用过这个电话:

$("#table-person-info").clone(false).find("*").removeAttr("id").appendTo($("#person-Info-View"));
Run Code Online (Sandbox Code Playgroud)

将clone方法的参数从true更改为false似乎没有任何区别.我发现这个代码完全破坏了html代码,如下所示:

    <table border="0" cellpadding="0" cellspacing="0" class="showTable">    </table>
    <tr>
        <td class="pictureColumn">
        </td>                   
        <td>
        </td>
        <td style="width:179px;">
            <img src="edit.png" alt="Edit" /> …
Run Code Online (Sandbox Code Playgroud)

html javascript jquery

1
推荐指数
1
解决办法
2137
查看次数