Advertisement

04.25.2008 at 04:14PM PDT, ID: 23355184
[x]
Attachment Details

Insert datetime text string into datetime column

Asked by beckboy_28 in SQL Server 2005, MS SQL Server

Tags: VB 2005, SQL Server 2005 Express Edition

How do I insert datetime text string into datetime column? I've done the following:
SELECT CONVERT(datetime,'select convert(datetime,convert(varchar(20),enter_time,106)) from access_log', 105 )+ convert(varchar(30),'select convert(datetime,convert(varchar(20),enter_time,108)) from access_log' , 8)

But I got the following error:
Conversion failed when converting datetime from character string.

Regards,

Start Free Trial
 
 
[+][-]04.25.2008 at 04:21PM PDT, ID: 21443817

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.

 
[+][-]04.25.2008 at 04:37PM PDT, ID: 21443864

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

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

 
[+][-]04.25.2008 at 04:49PM PDT, ID: 21443895

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.

 
[+][-]04.25.2008 at 04:54PM PDT, ID: 21443916

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

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

 
[+][-]04.25.2008 at 05:02PM PDT, ID: 21443932

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

Zones: SQL Server 2005, MS SQL Server
Tags: VB 2005, SQL Server 2005 Express Edition
Sign Up Now!
Solution Provided By: paulop1975
Participating Experts: 1
Solution Grade: A
 
 
[+][-]04.25.2008 at 10:50PM PDT, ID: 21444665

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

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

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