gpt4 book ai didi

c++ - MSSQL Server 2012 和来自 C++ dll 的扩展存储过程

转载 作者:行者123 更新时间:2023-11-30 05:28:38 25 4
gpt4 key购买 nike

我在工作中被分配了一项新任务。我需要更新一个非常旧的 C++ 项目。上一次修改该项目是在 2006 年。

现在,这个 C++ 项目编译了一个用作扩展存储过程的 dll。此 dll 安装在 SQL 服务器上并用作存储过程。

我们的SQL server要升级到2012版本,dll需要更新到64位。

MSSQL Server 2012 是否仍支持此功能?它仍然支持从 C++ dll 调用扩展存储过程吗?

谢谢,

查尔斯·安托万·卡隆

最佳答案

在 SQL2012 和 SQL2016 中仍然支持扩展存储过程,但需要注意以下几点:

This feature will be removed in a future version of Microsoft SQL Server. Do not use this feature in new development work, and modify applications that currently use this feature as soon as possible. Use CLR Integration instead.

参见 documentation at https://msdn.microsoft.com/en-us/library/ms164653(v=sql.110).aspx

如果移植到 CLR 太复杂,您可以在 C# 中使用 Pinvoke 来伪装 C++ dll。

关于c++ - MSSQL Server 2012 和来自 C++ dll 的扩展存储过程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36729133/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com