Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Error
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

redbrad0
Advanced Member

USA
3725 Posts

Posted - 05 June 2001 :  08:48:25  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
I get this following error when trying to add data into my sql database...


Microsoft OLE DB Provider for ODBC Drivers error '80040e07'

[Microsoft][ODBC SQL Server Driver][SQL Server]Disallowed implicit conversion from data type varchar to data type money, table 'freeaspcodesql.dbo.ExhibitParts_Orders', column 'OR_Product_Total'. Use the CONVERT function to run this query.


Here is the sql string I am using...
INSERT INTO ExhibitParts_Orders (OR_Customer_ID, OR_Date_Ordered, OR_Product_Total, OR_Shipping_N_Handling_Total, OR_Taxes_Total, OR_Products_Ordered, OR_CCType, OR_CCNumber, OR_CCCardHolderName, OR_ExpirationMonth, OR_ExpirationYear, OR_ProductShipMethod) VALUES (1, '6/5/2001 7:50:52 AM', '0.01', '19.39', '0.00', '4-1-.01|', 'Master Card', 'hghgf', 'Brad Wickwire', '02', '2003', 'FedEx Saturday')

can anyone tell me what the CONVERT function for money is in SQL Server?


Brad

Doug G
Support Moderator

USA
6493 Posts

Posted - 05 June 2001 :  10:22:02  Show Profile
Leave off the ' around the currency values.

======
Doug G
======
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.34 seconds. Powered By: Snitz Forums 2000 Version 3.4.07