Please start any new threads on our new site at http://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | 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
 New to SQL Server Administration
 MSG-257
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

dimple
Starting Member

1 Posts

Posted - 03/13/2013 :  03:51:12  Show Profile  Reply with Quote
Hi team
I have been facing an issue of MSG 257

"Msg 257, Level 16, State 3, Line 1
Implicit conversion from data type varchar to timestamp is not allowed. Use the CONVERT function to run this query."

I have to fetch certain data by executing this query
Select * from <tablenamexyz> where columnnameabc = '0000000%XYZ110.2'

kindly sugest me which convert function should I use to resolve this issue.

visakh16
Very Important crosS Applying yaK Herder

India
52326 Posts

Posted - 03/13/2013 :  04:26:23  Show Profile  Reply with Quote
where convert(varchar(32),columnnameabc) like '0000000%XYZ110.2'

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
  Previous Topic Topic Next 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.07 seconds. Powered By: Snitz Forums 2000