Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 7th, 2005, 10:50 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default Syntax error converting datetime from character st



update ScheduleTable set
 ScheduleStop='15-feb-2005 19:36:00'
,Status='active' where scheduleid=100


Here column name "ScheduleStop" is Varchar(50)
But I am getting the error
"Syntax error converting datetime from character string"

Actually i want to store the same data in varchar field.
How can i do ,i have tried CAST,Convert too.
Looking for help :)
Thanks in Advance

Cheers :)

vinod
__________________
Cheers :)

vinod
 
Old February 8th, 2005, 05:23 AM
Authorized User
 
Join Date: Jan 2005
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

u would not use any type casting function (CAST or convert), as this is automatically converted to varchar.

But for testing u can run this T-Sql in query analyzer, If this is running perfectly ok, then u have to check ur code. Let us know if problem presists.

Declare @ScheduleStop as varchar(50)

set @ScheduleStop='15-feb-2005 19:36:00'

select @ScheduleStop


Amit Jain
Sr. Software Engineer
 
Old September 10th, 2010, 10:11 AM
Registered User
 
Join Date: Sep 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default ST String dll

a few days ago i had to restart my computer and the first thing it tells me is that
ST String dll can not be found and then it begins to search for it and then it tells me it needs to be downloaded from a disc that came with my computer lol lol really please i am a 59 year old grand mother and well i guess you might call me computer illiterate. can someone please send me a link to download this dll?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Syntax error converting the varchar value... Earl Hickey ASP.NET 2.0 Basics 5 January 23rd, 2008 10:25 PM
Converting datetime to milliseconds since.. ravishakya SQL Server 2000 1 September 11th, 2006 07:47 AM
Syntax error converting datetime from character st kkrish SQL Server 2000 11 September 6th, 2006 06:46 AM
Syntax error converting datetime from character st Uppa SQL Server 2000 2 February 8th, 2005 08:01 PM
Error converting data type nvarchar to datetime. Andreas ADO.NET 2 August 18th, 2004 03:03 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.