SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 Script Library
 Date/Time Info and Script Links
 New Topic  Reply to Topic
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)

USA
7020 Posts

Posted - 10/31/2008 :  12:23:49  Show Profile  Reply with Quote
Updated original post to add query to show how to sum datetimes.


CODO ERGO SUM
Go to Top of Page

madhivanan
Premature Yak Congratulator

India
22744 Posts

Posted - 08/19/2010 :  05:30:36  Show Profile  Send madhivanan a Yahoo! Message  Reply with Quote
quote:
Originally posted by broyu

Another good SQL Tutorial can be found at <Link Removed>

What has this to do with DATETIME info?
Why are you posting the same link in many posts?

Madhivanan

Failing to plan is Planning to fail

Edited by - madhivanan on 08/19/2010 05:41:33
Go to Top of Page

Kristen
Test

United Kingdom
22403 Posts

Posted - 08/19/2010 :  05:32:12  Show Profile  Reply with Quote
Its spam, as per the report in the spam links. You may want to delete / modify your post to remove the additional link to their site?
Go to Top of Page

madhivanan
Premature Yak Congratulator

India
22744 Posts

Posted - 08/19/2010 :  05:41:59  Show Profile  Send madhivanan a Yahoo! Message  Reply with Quote
quote:
Originally posted by Kristen

Its spam, as per the report in the spam links. You may want to delete / modify your post to remove the additional link to their site?


Done

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

jcjaychou
Starting Member

Indonesia
1 Posts

Posted - 08/24/2011 :  05:53:17  Show Profile  Reply with Quote
I got this error :
Conversion failed when converting datetime from character string.

from this query...
INSERT INTO THRMEMPMEDICALHISTORY_TEST (HOSPITAL_CODE, DOCTOR_CODE,EMP_ID,START_DATE,END_DATE,FISIK,RONTG ENT_THORAX,URINE,DARAH,HATI,GLUKOSA,LAB_CONCLUSION ) VALUES (
'BIO','BIODR','RTK070045','OverWeight, Penurunan Visus Mata kanan dan kiri 20/25, Calculus (+), Sisa Akar (+)',CONVERT(datetime, '20110504 00:00:00.000',121),CONVERT(datetime, '20110528 00:00:00.0000',121),'Dalam batas Normal','Dalam batas normal','Peningkatan LED','Dalam batas normal','Dalam batas normal','Diet rendah kalori, olahraga lebih teratur Cek visus setahun sekali Jaga kebersihan gigi dan mulut Jika ada keluhan konsultasi ke dokter')

Regards
Jay Chou
Go to Top of Page

Kristen
Test

United Kingdom
22403 Posts

Posted - 08/24/2011 :  07:56:04  Show Profile  Reply with Quote
You are trying to store
'OverWeight, Penurunan Visus Mata kanan dan kiri 20/25, Calculus (+), Sisa Akar (+)'
in the column START_DATE
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000