首页 \ 问答 \ VS2010数据库项目和SQL Server 2008R2(VS2010 Database Projects and SQL Server 2008R2)

VS2010数据库项目和SQL Server 2008R2(VS2010 Database Projects and SQL Server 2008R2)

我正在尝试为SQL Server 2008R2数据库创建VS2010 SQL Server 2008数据库项目。 当我尝试导入现有数据库时,会弹出一个窗口,其中显示以下消息:“您选择的数据库不受支持”。

有谁知道为什么会这样?

注意:我设法创建了一个数据库项目,我很高兴地允许我在同一个SQL Server 2008 R2数据库的master数据库中创建一个表。

谢谢


I am trying to create a VS2010 SQL Server 2008 database project for a SQL Server 2008R2 database. When I attempt to import an existing database a window popups up with the following message "The database that you selected is not supported."

Does anyone have any idea why this is happening?

Note: I have managed to create a database project that happily allowed me to create a table in the master database on the same SQL Server 2008 R2 database.

Thanks


原文:https://stackoverflow.com/questions/9631149
更新时间:2022-06-25 16:06

最满意答案

您的问题是以下行:

    jQuery('html,body').animate({
        scrollTop: jQuery("#footer_copy_right").offset().top
    }, 'slow');

这会导致整个页面移动,因此您悬停的项目不再被悬停,因此它会再次触发您的事件并隐藏您的文本。 当我测试时,这导致悬停内容在我的鼠标下移回,从而再次触发......

我个人不会在这种情况下使用悬停,让用户单击展开然后再次单击以折叠。

如果要继续使用悬停选项,则需要确定触发崩溃的事件应该是什么。 显然,当前的选择(鼠标不再超过箭头)是不够的。

通常我要做的是将悬停附加到包含可见触发块的块以及将要显示的内容。 这样,在移出新显示的内容之前,您的内容不会崩溃。

http://jsfiddle.net/AjHwM/就是这样一个例子。


Your problem is the following line:

    jQuery('html,body').animate({
        scrollTop: jQuery("#footer_copy_right").offset().top
    }, 'slow');

This causes the whole page to move adn thus the item you were hovering over is no longer being hovered over so it triggers your event again and hides your text. When I was testing this was causing the hover content to move back under my mouse and thus trigger again...

I would personally not use hover in this situation and let the user click to expand and then click again to collapse.

If you want to keep using the hover option then you need to decide what the event to trigger the collapse should be. Clearly the current choice (mouse no longer over the arrow) is insufficient.

Often what I will do is attach the hover to a block containing the visible triggering block as well as the contents that are going to be displayed. This way your content won't collapse until you have moved off the newly displayed content.

http://jsfiddle.net/AjHwM/ is an example of such a thing.

相关问答

更多
  • 正确的方法是使用show和hide : $('#id').hide(); $('#id').show(); 另一种方法是使用jQuery css方法: $("#id").css("display", "none"); $("#id").css("display", "block"); The correct way to do this is to use show and hide: $('#id').hide(); $('#id').show(); An alternate way is to u ...
  • 您的问题是以下行: jQuery('html,body').animate({ scrollTop: jQuery("#footer_copy_right").offset().top }, 'slow'); 这会导致整个页面移动,因此您悬停的项目不再被悬停,因此它会再次触发您的事件并隐藏您的文本。 当我测试时,这导致悬停内容在我的鼠标下移回,从而再次触发...... 我个人不会在这种情况下使用悬停,让用户单击展开然后再次单击以折叠。 如果要继续使用悬停选项,则需要确定触发 ...
  • 当你设置的是父母的html时,你正在覆盖div,所以你试图显示一个div不在那里。 You are overwriting the div when you set is parent 's html, so you're trying to show a div thats not there.
  • 你为什么不用这样的css: why don't you use css like this: