Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > SQL Server DTS
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
SQL Server DTS Discussion specific to Data Transformation Service with SQL Server. General SQL Server discussions should use the general SQL Server forum. Readers of the book Professional SQL Server 2000 DTS with questions specific to that book should post in that book forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server DTS section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 3rd, 2008, 04:43 AM
Authorized User
Join Date: Oct 2007
Location: Hyderabad, Andhra Pradesh, India.
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem when inserting dates

I am trying to transfer data from an excel file to the database using DTS... I have a column for dates in my excel where the format of the date is like '02-Jan-2008' and in the database table the datatype for this column is nvarchar.... I have set the IMEX property to 1 in DTS connection properties...With this property set, if I am right the date should be inserting as '02-Jan-2008' into the database...Instead it is getting inserted as '08/01/02' ...

Please tell me why this is happening.. does this have anything to do with cultural settings...

And also provide me with a solution to avoid this....

Thanks and Regards,
Thanks and Regards,
  #2 (permalink)  
Old January 28th, 2008, 11:06 AM
Authorized User
Join Date: Jun 2007
Location: Delhi, New Delhi, India.
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to vishwjeet

Which database are you using?
None of the databsaes that I know stores the date in dd-mon-yyyy format.
It always stores date in the format mm/dd/yyyy or a similar one.
There are function availabe to display the date in the desired format.

If you can let me know where you need the date in a particular format from the database, I might be able to help you more on this.

- Vishu

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem getting the last 4 dates smiter SQL Language 3 January 16th, 2007 05:19 AM
SQL dates - Problem malecumbria Classic ASP Databases 4 February 16th, 2005 01:18 PM
Problem with Dates in Access Varg_88 Classic ASP Databases 2 December 8th, 2004 09:42 PM
Inserting dates in forms zulf Dreamweaver (all versions) 2 November 22nd, 2004 02:20 PM
Compare dates [problem]... Varg_88 VB Databases Basics 3 August 20th, 2004 09:55 AM

All times are GMT -4. The time now is 06:08 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.