|
Hi, I have the following problem , on some servers xp_cmdshell returns the date in this format and on others like this the problem is with the AM/PM, I assume it is a locale setting, this is messing up a proc I am working on thanks
(comments are locked)
|
|
This will be set at the Windows Server level, not the SQL Server level. Go to Control Panel of each server and check there thanks Kev I understand that , I need to be able to tell what it is so I can build a check into the t-sql when the proc is running i need the date so I can perform date/time functions on it
Jun 24 '11 at 02:21 AM
Gergav33
Then you would have to build sql to check every possible format of date and time. This sounds more like you should be doing this kind of thing in SSIS - I'm sure there you could query the properties of a file to determine the creation date/time - a lot easier
Jun 24 '11 at 02:25 AM
Kev Riley ♦♦
(comments are locked)
|
|
The short date format set on the machine can be tested - see http://support.microsoft.com/kb/241671 for some more info on the registry setting. You can see how to read registry values at http://www.sqlservercentral.com/scripts/T-SQL+Aids/31071/
(comments are locked)
|

