• Skip to main content
  • Skip to header right navigation
  • Skip to site footer
Foster Solutions (FSI)

Foster Solutions (FSI)

The Solution is in the Process

  • Home
  • What We Do
  • Case Studies
    • Databases/Automation Case Studies
    • GIS/Market Research Case Studies
    • Local Government Case Studies
    • FSI – crosspollination – examples
  • Articles

Converting SQL float field types

May 25, 2010 by tech guys

Floats field types have their perils.  It is the field type that often defaults on an import from Excel, where the field type has to be guessed.

If you try to change the field type to VarChar you get something like “4.00309e+006”

You can first convert from float to bigint and then to VarChar, or create a new VarChar field and use the following SQL.  This is for SQL Server.

update tblMyTable set VarCharField = cast(CONVERT(bigint, floatField) as varchar(10))

Category: Articles, SQL

Showcase Your Agency

Give your agency, business, or brand the sharp image it deserves with Mai Reach theme from BizBudding.

Buy Mai Reach Now

About tech guys

Previous Post:SEO-SEM
Next Post:Copying Entire Row in SQL Server

Ready to get started?

Client Survey

Please take this survey if you are interested in a new or modified website. We will assess and get back with you as soon as possible.


Finding Solutions

We work with you to make things faster, easier and better.

  • Facebook
  • LinkedIn

Sites

  • Home
  • Blog
  • About
  • Features
  • Contact
  • Marketing

Features

  • Home
  • Blog
  • About
  • Features
  • Contact
  • Marketing

Support

  • Home
  • Blog
  • About
  • Features
  • Contact
  • Marketing

Copyright © 2025 · Foster Solutions (FSI) · All Rights Reserved

Back to top