Ram Shankar Yadav's Blog!

My life's my passion!

  Home  |   Contact  |   Syndication    |   Login
  157 Posts | 0 Stories | 331 Comments | 95 Trackbacks

News


Microsoft Certified Technology Specialist ( MCTS) - .NET 2.0 Windows Development
Microsoft Certified Professional

My Photo Ablum


Cheap Website Hosting - Free Domain

Archives

Post Categories

Image Galleries

Blogs that I like most !

Sites that I like most !

I recently faced this problem, when I tried to enter a value 2.00 in a float column in SQL Server 2000. I repeatedly tried to insert this value but I failed every time, then I tried with some work arounds by casting that value to numeric/decimal. It worked but......., there's still one thing that was missing was that when we tried with the following SQL statement:

Select Cast(fieldname as numeric(9,2)) From tablename

Although we got the desired result in that column but column name was missing this time so we tried this:

Select Cast(fieldname as numeric(9,2)) alias From tablename
or
Select Cast(fieldname as numeric(9,2)) as alias From tablename

Yo ho ! It finally worked !

posted on Wednesday, January 25, 2006 7:40 AM