Unix Technical Forum

Scheduling a DTS Package

This is a discussion on Scheduling a DTS Package within the SQL Server forums, part of the Microsoft SQL Server category; --> I have created a DTS package that imports a comma delimited (CSV) text file into a table. One field ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 07:10 PM
Alan Bell
 
Posts: n/a
Default Scheduling a DTS Package

I have created a DTS package that imports a comma delimited (CSV) text
file into a table. One field uses a VB script that parses a date into
the proper format for the transformation. All other fields are copied
as is. When I run the package directly the date field is imported
correctly (ie MM/DD/YYY). When I schedule the package to run (the job
is in SQL Server Agent, Jobs) the month and day entries are
transposed. In other words the date field is imported as DD/MM/YYYY
(ie Dec 4, 2003 should be 12/4/2003 but the scheduled job imports it
as 4/12/2003)
Does anyone have a fix for this ?

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 07:10 PM
BenignVanilla
 
Posts: n/a
Default Re: Scheduling a DTS Package


"Alan Bell" <belalan@yahoo.com> wrote in message
news:a5344ef4.0312100749.1e59880f@posting.google.c om...
> I have created a DTS package that imports a comma delimited (CSV) text
> file into a table. One field uses a VB script that parses a date into
> the proper format for the transformation. All other fields are copied
> as is. When I run the package directly the date field is imported
> correctly (ie MM/DD/YYY). When I schedule the package to run (the job
> is in SQL Server Agent, Jobs) the month and day entries are
> transposed. In other words the date field is imported as DD/MM/YYYY
> (ie Dec 4, 2003 should be 12/4/2003 but the scheduled job imports it
> as 4/12/2003)
> Does anyone have a fix for this ?


When you run the package directly and when you on it on the schedule, are
you doing both on the same physical machine? If not the agent running on the
server, and you running on your workstation against the server may be using
different regional settings in windows that are causing the erroneous
results.

BV
www.iheartmypond.com


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:28 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com