在sql server中使用链接服务器的视图 [英] Views using linked server in sql server

查看:906
本文介绍了在sql server中使用链接服务器的视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用从指向foxpro表的链接服务器创建的视图。当我创建视图时它可以工作,但LightSwitch拒绝使用它。这些视图将用于填充下拉列表。

Is it possible to use a view created from a linked server pointing to foxpro tables. When i create the view it works but LightSwitch refuses to use it. These views would be used to populate drop down lists.

查询示例是选择城镇,城镇名称来自vfptables ... towntbl

Example of the query is select town, townname from vfptables...towntbl

谢谢

len

推荐答案

我相信只要视图返回一个可推断的唯一键或主键,该视图应该在LightSwitch中可见。

I believe so long as the view returns an inferable unique or primary key, the view should be visible in LightSwitch.

作为测试,您是否可以使用名为‘ id’的主键列创建一个新的FoxPro表?接下来,通过SQL Server链接到表,创建一个视图,看看你是否可以通过LightSwitch看到它?

As a test, could you create a new FoxPro table with a primary key column named ‘id’? Next, link to the table through SQL Server, create a view and see whether or not you can see it through LightSwitch?


这篇关于在sql server中使用链接服务器的视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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