select cast(your_float_column as decimal(10,2))
from your_table
decimal(10,2)
means you can have a decimal number with a maximal total precision of 10 digits. 2 of them after the decimal point and 8 before.
The biggest possible number would be 99999999.99
More Related Contents:
- Export from SQL Server to Excel
- If condition in SQL Server 2008
- Comma separated results in SQL
- Understanding PIVOT function in T-SQL
- Which are more performant, CTE or temporary tables?
- Using RegEx in SQL Server
- How do you view ALL text from an ntext or nvarchar(max) in SSMS?
- Import Excel spreadsheet columns into SQL Server database
- SqlServer: Login failed for user
- SQL Server 2008 Empty String vs. Space
- How do I use the CONCAT function in SQL Server 2008 R2?
- How can I automate the “generate scripts” task in SQL Server Management Studio 2008?
- Is it possible to force row level locking in SQL Server?
- Select / Insert version of an Upsert: is there a design pattern for high concurrency?
- How do I get date/time information from a TIMESTAMP column?
- How to drop column with constraint?
- SQL Server: combining multiple rows into one row
- How to add xml encoding to xml Output in SQL Server
- SQL Server GUID sort algorithm. Why?
- What happens to the primary key Id when it goes over the limit?
- SQL Recursive CTE: Finding objects linked by property
- Convert decimal time to hours and minutes
- How to create the linked server for SQL Server 2008 where we have the database from 2000 and 2005
- Sort Bullets in Database
- Unable to login to SQL Server + SQL Server Authentication + Error: 18456
- What’s the best way to store co-ordinates (longitude/latitude, from Google Maps) in SQL Server?
- How Can I Detect and Bound Changes Between Row Values in a SQL Table?
- How to wait for 2 seconds?
- Find broken objects in SQL Server
- Populate Dataset With Table Names From Stored Procedure