关于语法检查命令,使用我们的提供程序的查询生成器出错 [英] Error on query builder using our provider in regards to syntax check command

查看:116
本文介绍了关于语法检查命令,使用我们的提供程序的查询生成器出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很抱歉,对于badwidth,我们有一个.Net提供程序,在DDEX集成,服务器资源管理器等中使用.用户启动查询构建并添加其表,然后选择不支持我们确认的验证SQL synatx菜单,是否有人知道接口提供程序或我们的SE集成需要支持查询构建器语法检查,其他所有命令都可以在查询构建器中运行(执行,添加表,更新等),我们唯一遇到的命令是语法检查,如果有人告诉我需要实现哪个接口来支持查询生成器中的语法检查,我将不胜感激,如果没有这样的接口,我们知道吗?什么时候可用

感谢您的帮助

Ff

推荐答案



在VS 2005中不支持,但在VS 2008中是可能的(并且无论您的DDEX提供程序是基于VS 2005还是基于VS 2008,它都可以正常工作).关键是添加一个"SupportsVerifySQL".属性设置为您的DataSourceInformation属性集,并使其返回布尔值"true".提供此属性后,查询设计器将调用您的DataCommand.DeriveSchema()方法作为实现验证SQL的方法(基本上,如果我们确定有可能派生给定命令的模式,则假定命令文本必须具有是有效的.)

希望这会有所帮助.

谢谢,
Stephen
Hi,

This was not supported in VS 2005 but is possible in VS 2008 (and should work regardless of whether your DDEX provider is VS 2005 or VS 2008 based).  The key is to add a "SupportsVerifySQL" property to your DataSourceInformation set of properties and have it return the Boolean value "true".  When this property is provided, the query designer will call your DataCommand.DeriveSchema() method as the approach to implementing verify SQL (basically, if we determine it is possible to derive the schema of a given command, we assume the command text must have been valid).

Hope this helps.

Thanks,
Stephen


这篇关于关于语法检查命令,使用我们的提供程序的查询生成器出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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