Sql Server 2005、Xml 类型和 ODBC?
使用xml类型的Sql 2005数据库可以通过ODBC访问吗?
Can a Sql 2005 database that uses the xml type be accessed with ODBC?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
使用xml类型的Sql 2005数据库可以通过ODBC访问吗?
Can a Sql 2005 database that uses the xml type be accessed with ODBC?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
我相信 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.
不确定连接到 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
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