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.
ローカル日時の値が渡された場合にUTC時刻をデータベースに保存するようにSQLサーバーを構成する方法はありますか?
いいえ、ありません。
SQL Server に渡す前または後に、UTC に変換する必要があります。
DateTimeSQL Server に渡されたインスタンスはDateTimeKind、転送中に関連を失います。これは、SQL 型に対応するものがないためです。
DateTime
DateTimeKind