Sql Server 2005、Xml 类型和 ODBC?

发布于 2024-07-15 20:12:12 字数 38 浏览 4 评论 0原文

使用xml类型的Sql 2005数据库可以通过ODBC访问吗?

Can a Sql 2005 database that uses the xml type be accessed with ODBC?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

与风相奔跑 2024-07-22 20:12:12

我相信 XML 数据类型在很大程度上将作为字符数据类型进行处理...

当然,OpenLink ODBC 驱动程序在本地返回 XML 数据类型为 SQL_LONGVARCHAR。

I believe XML datatypes will be, pretty much, handled as character data types...

Certainly, the OpenLink ODBC driver returns XML data types, locally, as SQL_LONGVARCHAR.

扮仙女 2024-07-22 20:12:12

不确定连接到 SQL Server 2005 的所有 ODBC 驱动程序是否都是如此,但 DataDirect 确实声称支持几乎所有 SQL Server 2005 甚至大多数 SQL Server 2008 新功能。 请在此处查看其列表。

啊,这是 Microsoft 对此的评论

如果您正在开发基于 COM 的应用程序并需要访问 SQL Server 2005 的新功能,则应该使用 SQL Native Client。 如果您不需要访问 SQL Server 2005 的新功能,您可以继续使用 Microsoft 数据访问组件 (MDAC)。

所以我猜,如果您使用 SQL Native Client ODBC 驱动程序,您应该能够使用XML数据类型。

马克

Not sure if this is true for all ODBC drivers connecting to SQL Server 2005, but DataDirect does claim to support pretty much all SQL Server 2005 and even most of the new SQL Server 2008 features. See their listing here.

Ah, and here's Microsoft comment on it:

If you are developing a COM-based application and need to access the new features of SQL Server 2005, you should use SQL Native Client. If you don't need access to the new features of SQL Server 2005, you can continue to use Microsoft Data Access Components (MDAC).

So I guess, if you use the SQL Native Client ODBC driver, you should be able to use the XML data type.

Marc

风启觞 2024-07-22 20:12:12

SQL Server 的本机客户端 odbc 驱动程序使用新的 SQL_SS_XML 类型支持此功能。

http://msdn.microsoft.com/en -US/library/ms131375%28v=SQL.90%29.aspx

This's supported in the sql server's native client odbc driver with the new SQL_SS_XML type.

http://msdn.microsoft.com/en-US/library/ms131375%28v=SQL.90%29.aspx

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文