for some dates I got 06/12/2003 and others JUN 12 2003

I did not design this merely walking into a previous mess.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 4:37 PM
To: CF-Talk
Subject: Re: SQL conversion question for SQL Guru


How does the data in that column look like?

----- Original Message -----
From: Eric Creese <[EMAIL PROTECTED]>
Date: Thursday, June 12, 2003 3:34 pm
Subject: SQL conversion question for SQL Guru

> I have a query I am trying to run to get a particular record out 
> of the database. The problem is that one of the fields is 
> a varchar 255 field that houses a date. I want to convert the date 
> so I can find out if it is greater than getdate(). I run the following
> code and generate this conversion error message:
> 
> Server: Msg 241, Level 16, State 1, Line 1
> Syntax error converting datetime from character string.
> 
> 
> select distinct personid 
> from persondemographic 
> where demographicgroupid =4
> and demographicitemid =4
> and convert(datetime, demographicvaluedesc) > getdate()
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to