[英]Querying a different sql server from a sandboxed plugin in Dynamics CRM 2011
I am writing a plugin (my first) for CRM2011 which needs to pull some information from a different sql server when an account is opened in the CRM.我正在为 CRM2011 编写一个插件(我的第一个),当在 CRM 中打开帐户时,它需要从不同的 sql 服务器中提取一些信息。 I'd like to run the plugin in the sandbox and am comfortable using ado.net, or linq2sql, or ef.
我想在沙箱中运行该插件,并且很乐意使用 ado.net、linq2sql 或 ef。 I'm looking for advice on
我正在寻求建议
can this be done from the sandbox?这可以从沙箱中完成吗?
which technology should i use so that I don't have to load up a bunch of assemblies that aren't already being used by CRM2011,我应该使用哪种技术,这样我就不必加载一堆 CRM2011 尚未使用的程序集,
if I pass a username/password inside the connection string will that work?如果我在连接字符串中传递用户名/密码,那会起作用吗?
Any advice you can offer would be great!你能提供的任何建议都会很棒!
Can't be done from the sandbox.无法从沙盒中完成。 Take it out of the sandbox and the plugin was able to query other sql servers.
将其从沙箱中取出,插件就能够查询其他 sql 服务器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.