且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在MS SQL Server数据库中设置时区

更新时间:2023-02-07 08:48:11

根据MSDN getdate()返回当前数据库系统时间戳:

According to MSDN, getdate() returns the current database system timestamp:

此值是从计算机上的操作系统派生的 哪个SQL Server实例正在运行.

This value is derived from the operating system of the computer on which the instance of SQL Server is running.

您可以更改tsutil.exe的时区:

You can change the timezone with tsutil.exe:

tzutil /s "India Standard Time"