TargetServer.LocalTime Property
Gets the current date and time for the referenced target server.
Пространство имен: Microsoft.SqlServer.Management.Smo.Agent
Сборка: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Синтаксис
'Декларация
Public ReadOnly Property LocalTime As DateTime
public DateTime LocalTime { get; }
public:
property DateTime LocalTime {
DateTime get ();
}
/** @property */
public DateTime get_LocalTime ()
public function get LocalTime () : DateTime
Значение свойства
A DateTime value that specifies the current date and time at the referenced target server.
Замечания
Microsoft SQL Server multiserver administration can be configured to administer instances of SQL Server installed throughout the world. The possibility for job scheduling conflicts or errors can arise.
For example, a job created on June 1, 1998 for single execution on that date, by a master server in Seattle could never execute on a server enlisted from Japan. The Japanese target server, having a local date of June 2, will ignore the job because its defined execution date has passed.
Querying the LocalTime property, and using the TimeZoneAdjustment property in scheduling, can help avoid these potential errors.
Это пространство имен, класс или элемент поддерживаются только платформой Microsoft .NET Framework версии 2.0.
Пример
How to: Construct an Object in Visual Basic .NET
Синхронизация потоков
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Платформы
Платформы разработки
Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.
Целевые платформы
Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.
См. также
Справочник
TargetServer Class
TargetServer Members
Microsoft.SqlServer.Management.Smo.Agent Namespace
Другие ресурсы
Scheduling Automatic Administrative Tasks in SQL Server Agent
Автоматизация задач администрирования (агент SQL Server)
sp_help_targetserver (Transact-SQL)