dbTalk Databases Forums  

SQL Server 2000 date anomaly

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss SQL Server 2000 date anomaly in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
stainless
 
Posts: n/a

Default SQL Server 2000 date anomaly - 06-26-2012 , 05:27 AM






We are replacing a development server and this has involved re-testing DTS packages on the new server.

We have hit an anomaly within a VB script within packages. Our script is called directly from a SQL job and, when we run this on the new server, it isbuilding a filename with a suffix of the current date in M/dd/YYYY format.This is behaving differently to our previous server which was using dd-MM-YYYY format.

This is causing failures. Rather than change any such scripts, I need to find and fix the date setting that is defining the default format. Our SQL support team state they do not think there is an issue with SQL Server 2000 default date.

Interestingly, if I run the DTS package in Design pakage mode, it picks up the default server setting for my ID (Uk date) and works correctly i.e. uses dd-MM-YYYY format. It is simply when run from the job that US date is used.

Reply With Quote
  #2  
Old   
dashingpiyush@gmail.com
 
Posts: n/a

Default Re: SQL Server 2000 date anomaly - 07-31-2012 , 05:09 AM






Are you running the package from some other server or your own machine(during design mode) when it executes successfully( ex: you connect from your own machine which has US timezone?)

Reply With Quote
  #3  
Old   
stainless
 
Posts: n/a

Default Re: SQL Server 2000 date anomaly - 08-10-2012 , 08:28 AM



On Tuesday, July 31, 2012 11:09:19 AM UTC+1, dashin... (AT) gmail (DOT) com wrote:
Quote:
Are you running the package from some other server or your own machine(during design mode) when it executes successfully( ex: you connect from your own machine which has US timezone?)
It was on the server itself.

However, this has now been solved. The machine default time was US and the userid used by the job was picking this up. The server default was changed and all is working now.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.