SQLServer 2008 引入了一个非常受欢迎的 DateTimeOffset field type .
.Net 3.5 以上的版本引入了相应的 DateTimeOffset structure .
我想知道如何在 C++ 中操作同一个字段。 documentation for CDBVariant
不讨论 DateTimeOffset。
如何在 C++ 中操作 DateTimeOffsets?
最佳答案
我认为this MSDN 页面可能对您有用。它包括一个关于如何使用新的日期/时间结构的 C++ 示例。从页面描述:
This sample shows how to initialize the date/time data structures that were added in SQL Server 2008. It then prepares the input values, binds parameters, and executes the query. For more information about using these types, see Date/Time Improvements (ODBC).
关于c++ - 在 C++ 中读取、操作和写入 SQLServer DateTimeOffset 字段,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17280389/