Click here to Skip to main content
15,901,284 members
Home / Discussions / Database
   

Database

 
GeneralRe: Convert Decimal To Date? Pin
Rocky#22-Jul-08 23:20
Rocky#22-Jul-08 23:20 
Pete O'Hanlon wrote:
Guess what. Created doesn't get a default value. What you do get is an error:

WTF | :WTF:
what else would it give, trying to insert a null into a not null column,

try this


Insert into Test(text, created)
values ('my test', CAST('7/23/2008' as  datetime))



The result looks like this on my end: 7/23/2008 12:00:00 AM

My point was simple, if u r getting a dateTime object, it will ALWAYS show the time, if u dont wanna see the time then cast it to varchar or something but datetime will always show u the time. here in the above query I'm not giving the time but its still comming. Thats the simple point I was talking abt. Pardon me if this doesnt satisfy the guys original question but my point was this alright! Rose | [Rose]

I deeply respect ur place Pete, I dont mean any offense alright

Rocky

Success is a ladder which you can't climb with your hands in your pockets.

GeneralRe: Convert Decimal To Date? Pin
Pete O'Hanlon23-Jul-08 1:08
mvePete O'Hanlon23-Jul-08 1:08 
GeneralRe: Convert Decimal To Date? Pin
Rocky#23-Jul-08 3:02
Rocky#23-Jul-08 3:02 
AnswerRe: Convert Decimal To Date? Pin
Blue_Boy21-Jul-08 0:36
Blue_Boy21-Jul-08 0:36 
AnswerRe: Convert Decimal To Date? Pin
zahedonline21-Jul-08 0:37
zahedonline21-Jul-08 0:37 
AnswerRe: Convert Decimal To Date? Pin
leoinfo21-Jul-08 2:37
leoinfo21-Jul-08 2:37 
GeneralRe: Convert Decimal To Date? Pin
obarahmeh21-Jul-08 21:54
obarahmeh21-Jul-08 21:54 
GeneralRe: Convert Decimal To Date? Pin
Mycroft Holmes21-Jul-08 23:52
professionalMycroft Holmes21-Jul-08 23:52 
QuestionFile size Pin
rezarafiee20-Jul-08 19:01
rezarafiee20-Jul-08 19:01 
AnswerRe: File size Pin
Krish - KP20-Jul-08 20:58
Krish - KP20-Jul-08 20:58 
AnswerRe: File size Pin
Ashfield20-Jul-08 21:00
Ashfield20-Jul-08 21:00 
QuestionNortwind database selection through database expert ??? Pin
amistry_petlad20-Jul-08 8:30
amistry_petlad20-Jul-08 8:30 
AnswerRe: Nortwind database selection through database expert ??? Pin
Paul Conrad20-Jul-08 9:51
professionalPaul Conrad20-Jul-08 9:51 
GeneralRe: Nortwind database selection through database expert ??? [modified] Pin
amistry_petlad20-Jul-08 13:06
amistry_petlad20-Jul-08 13:06 
GeneralRe: Nortwind database selection through database expert ??? Pin
Paddy Boyd21-Jul-08 2:30
Paddy Boyd21-Jul-08 2:30 
GeneralRe: Nortwind database selection through database expert ??? Pin
Paul Conrad21-Jul-08 6:13
professionalPaul Conrad21-Jul-08 6:13 
QuestionProblem in a query Pin
Shuaib wasif khan19-Jul-08 23:18
Shuaib wasif khan19-Jul-08 23:18 
AnswerRe: Problem in a query Pin
Colin Angus Mackay20-Jul-08 0:00
Colin Angus Mackay20-Jul-08 0:00 
GeneralRe: Problem in a query Pin
Shuaib wasif khan20-Jul-08 0:54
Shuaib wasif khan20-Jul-08 0:54 
GeneralRe: Problem in a query Pin
Blue_Boy20-Jul-08 2:50
Blue_Boy20-Jul-08 2:50 
GeneralRe: Problem in a query Pin
Shuaib wasif khan20-Jul-08 4:40
Shuaib wasif khan20-Jul-08 4:40 
GeneralRe: Problem in a query Pin
Wendelius20-Jul-08 9:29
mentorWendelius20-Jul-08 9:29 
AnswerRe: Problem in a query Pin
zahedonline21-Jul-08 1:43
zahedonline21-Jul-08 1:43 
Questionloading records problem Pin
harcaype19-Jul-08 16:50
harcaype19-Jul-08 16:50 
AnswerRe: loading records problem Pin
Ashfield20-Jul-08 8:20
Ashfield20-Jul-08 8:20 

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.