I would recommend controlling the system date form the NT server rather than trying to set it from SQL Server.
You can install a time program that will synch the NT system date/time with time servers available on the internet. Dimension 4 and About Time are free and I've used boith to keep servers and PCs set to the correct time. You could also set up a Time server on your LAN and synch to that via NET TIME.
I suppose you can use xp_cmdshell to set the date/time.
xp_cmdshell 'date 2/8/02'
xp_cmdshell 'time '12:21' Terry L. Broadbent
FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.