troubleshooting Question

Alter Column nvarchar to Money

Avatar of JohnB344
JohnB344 asked on
Microsoft SQL Server 2005
2 Comments1 Solution612 ViewsLast Modified:
I have a table that I get and I want to change an nvarchar(50) value to Money.
My column looks like:
0000500.00
0005190.00
0000100.00
I want to convert to Money but I get, Disallowed implicit conversion from data type nvarchar to data type money.
I know I can right click on the table and change this, but how can I do it in an Alter Column Stmt? If I try to do an Update or Convert before the Alter I get the opposet error...
Disallowed implicit conversion from data type money to data type nvarchar
I know this is probably easy, but I can't seem to get it done without right clicking on the table and selecting money.... then it's no problem!
Thanks In advance, jb
ASKER CERTIFIED SOLUTION
knightEknight

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros