TargetServer.LocalTime 속성

Gets the current date and time for the referenced target server.

네임스페이스:  Microsoft.SqlServer.Management.Smo.Agent
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)


<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property LocalTime As DateTime 
‘사용 방법
Dim instance As TargetServer 
Dim value As DateTime 

value = instance.LocalTime
public DateTime LocalTime { get; }
property DateTime LocalTime {
    DateTime get ();
member LocalTime : DateTime
function get LocalTime () : DateTime

속성 값

유형: System.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.

SQL Server 에이전트에서 자동 관리 태스크 예약

참고 항목


TargetServer 클래스

Microsoft.SqlServer.Management.Smo.Agent 네임스페이스

관련 자료

관리 태스크 자동화(SQL Server 에이전트)