Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in SQL Server only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
SQL Server
Cast an entire field from VARCHAR to FLOAT
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Cyprus106
New Member
Join Date:
Apr 2008
Posts:
31
#1
Cast an entire field from VARCHAR to FLOAT
May 1 '08, 08:51 PM
How do I cast the entire table field from varchar to float?
Granted, I know the risks involved with doing this, but nonetheless...
Delerna
Recognized Expert
Top Contributor
Join Date:
Jan 2008
Posts:
1134
#2
May 1 '08, 11:09 PM
Do you mean in the table itself or in a query using the table?
Convert(type,fi eld) is what you use in a query
To change it in the table just design the table and change the type.
I say now more on that as you say you are aware of the danders
Comment
Post
Cancel
ck9663
Recognized Expert
Specialist
Join Date:
Jun 2007
Posts:
2878
#3
May 2 '08, 06:51 AM
Here's
the complete CAST and CONVERT syntax
-- CK
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment