Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server DTS
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 3rd, 2008, 04:43 AM
Authorized User
Join Date: Oct 2007
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,
Old January 28th, 2008, 11:06 AM
Authorized User
Join Date: Jun 2007
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

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

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