Advertisement

11.17.2005 at 11:06PM PST, ID: 21635421
[x]
Attachment Details

Insert DateTime Text String into DateTime Column ...

Asked by prasitlee in MS SQL Server

Tags: insert, datetime, sql

Hi all experts,
    I am a new guy which is now working with SQL Server. I try the following SQL Statement
    INSERT INTO TRACKLOC
                      (DATETIME)
VALUES     ('18-11-2548 10:27:20')
    I try this command in one database and it works very well. However once I use the same SQL Statement to run on another server. It show me the error "Out-of-range".
    Can anyone tell me how can I absolulely insert the datetime value into the table without any setting in the sql server. I am currently using SQL Server 2000.
                                                                 Thanks,
                                                                   MengStart Free Trial
[+][-]11.17.2005 at 11:12PM PST, ID: 15317961

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MS SQL Server
Tags: insert, datetime, sql
Sign Up Now!
Solution Provided By: angelIII
Participating Experts: 3
Solution Grade: A
 
 
[+][-]11.17.2005 at 11:14PM PST, ID: 15317969

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.17.2005 at 11:29PM PST, ID: 15318007

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.17.2005 at 11:32PM PST, ID: 15318018

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32