Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有需要访问 SQL 服务器数据库的 VSTO 应用程序,但它不能直接访问。我已经想到了两种方法来执行这项任务,但我不知道这些是否是最好的:
你的第二个选择是要走的路。创建 WCF 服务,并在受信任的环境中访问 SQL Server。您可以使用 Windows 身份验证保护服务,或者在每次调用时传递用户名/密码或会话密钥。