如何在发布时忽略sql数据视图 [英] How to ignore sql data views on publish

查看:96
本文介绍了如何在发布时忽略sql数据视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要对lightswitch Sharepoint HTML应用程序进行简单的方案更改,因此需要重新发布包含数据库的应用程序.  但是我以前是直接在Azure数据库中创建视图以用于Excel服务中的BI报告.

I require a simple scheme change on a lightswitch Sharepoint HTML app so need to republish the app inclusive of the database.  However I had previously created views directly in the Azure database for the purposes of BI reporting in Excel services.

现在,当我去发布LIghtswitch时,它们无法识别这些视图并且不会发布该应用程序,并且看来唯一的解决方法是删除它们?

Now when I go to publish LIghtswitch does not recognise these views and will not publish the app and it seems the only way forward is to delete them?

有什么想法吗?

Sally

推荐答案

Sally,

Hi Sally,

您可以轻松编写视图脚本,将其删除,然后再将其编写回脚本.

You could easily script off the views, delete them and script them back in afterwards.

您可以将LightSwitch项目链接到SQL数据库项目,然后将视图脚本添加为部署后脚本.这样一来,您的localdb dev数据库就可以保持同步.

You could link the LightSwitch project to a SQL Database Project and add the view scripts as post deployment scripts. That way you localdb dev database would be kept in step.

如果太复杂了,您可以切换到手动部署,在这种情况下,架构比较功能和工具是您的朋友.

If it gets too complicated you can switch to manual deployment, in which case schema comparison features and tools are your friend.

戴夫


这篇关于如何在发布时忽略sql数据视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆