Click here to Skip to main content
16,006,709 members
Home / Discussions / Database
   

Database

 
AnswerRe: help .... Pin
originSH6-Aug-07 22:00
originSH6-Aug-07 22:00 
GeneralRe: help .... Pin
B.A6-Aug-07 22:14
B.A6-Aug-07 22:14 
AnswerRe: help .... Pin
Pete O'Hanlon6-Aug-07 22:06
mvePete O'Hanlon6-Aug-07 22:06 
GeneralRe: help .... Pin
B.A6-Aug-07 22:11
B.A6-Aug-07 22:11 
GeneralRe: help .... Pin
Pete O'Hanlon6-Aug-07 22:17
mvePete O'Hanlon6-Aug-07 22:17 
QuestionRe: help .... Pin
B.A6-Aug-07 22:54
B.A6-Aug-07 22:54 
QuestionCannot generate SSPI context error Pin
xbiplav6-Aug-07 18:16
xbiplav6-Aug-07 18:16 
QuestionPuzzled by converting date on an export [modified] Pin
Jack Fleet6-Aug-07 8:37
Jack Fleet6-Aug-07 8:37 
I have done this hundreds of times; however I am getting stumped on why the date will not convert. I have tried using both CAST and CONVERT.

I am using DTS to export a table to a CSV flat file. There are four fields that need to be converted, all have some null values. I am not including the nulls in the export, NO NULL.

The field Data Types are varchar (255).

The date in the fields are store in the following format 2003-12-11 (no time stamp) and I need to export them as 12-11-2003 (no time stamp). - vs / makes no difference.

I have tried the following in a query.

CONVERT (varchar,DATE1,101) NO NULL,

export does not convert, results in 2003-12-11.

CAST (DATE1 AS DATETIME) AS DATE NO NULL,

export does not convert, results in 2003-12-11.

Thanks for your help.


-- modified at 15:06 Monday 6th August, 2007

Jack Fleet

AnswerRe: Puzzled by converting date on an export Pin
Mike Dimmick6-Aug-07 12:38
Mike Dimmick6-Aug-07 12:38 
GeneralRe: Puzzled by converting date on an export Pin
Jack Fleet6-Aug-07 12:43
Jack Fleet6-Aug-07 12:43 
QuestionSQL Query Pin
sangramkp6-Aug-07 7:06
sangramkp6-Aug-07 7:06 
AnswerRe: SQL Query Pin
andyharman6-Aug-07 7:15
professionalandyharman6-Aug-07 7:15 
GeneralRe: SQL Query Pin
sangramkp6-Aug-07 7:40
sangramkp6-Aug-07 7:40 
GeneralRe: SQL Query Pin
andyharman6-Aug-07 8:17
professionalandyharman6-Aug-07 8:17 
AnswerRe: SQL Query Pin
Pete O'Hanlon6-Aug-07 22:05
mvePete O'Hanlon6-Aug-07 22:05 
QuestionTimeout while reading data from database Pin
Muhammad Ahmed6-Aug-07 6:45
Muhammad Ahmed6-Aug-07 6:45 
AnswerRe: Timeout while reading data from database Pin
vimal_yet6-Aug-07 22:23
vimal_yet6-Aug-07 22:23 
AnswerRe: Timeout while reading data from database Pin
Pete O'Hanlon6-Aug-07 22:38
mvePete O'Hanlon6-Aug-07 22:38 
QuestionDataAdapter.Update Problem Pin
MohammadAmiry6-Aug-07 6:12
MohammadAmiry6-Aug-07 6:12 
Questionproblem with pop3 mail box Pin
shaikshavali6-Aug-07 2:17
shaikshavali6-Aug-07 2:17 
AnswerRe: problem with pop3 mail box Pin
Marek Grzenkowicz6-Aug-07 22:30
Marek Grzenkowicz6-Aug-07 22:30 
QuestionDate Range Pin
Brendan Vogt5-Aug-07 20:50
Brendan Vogt5-Aug-07 20:50 
AnswerRe: Date Range Pin
Krish - KP5-Aug-07 21:10
Krish - KP5-Aug-07 21:10 
QuestionReducing the Execution time of the Sql Server 2000 Stored procedure. Pin
tonic_valan5-Aug-07 20:32
tonic_valan5-Aug-07 20:32 
AnswerRe: Reducing the Execution time of the Sql Server 2000 Stored procedure. Pin
Marek Grzenkowicz5-Aug-07 21:02
Marek Grzenkowicz5-Aug-07 21:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.