Hi SQ,
My assumption was right in your case.
Code:
INSERT INTO Products
VALUES ('real estate','543','$575,000.00');
Change that to
Code:
INSERT INTO Products
VALUES ('real estate',543,$575000.00);
Also don't use quotes around 543, as ProdId seems to be an integer.
If that returned error, you should sequence the values in the order of columns that are defined in the table structure.
Here is the other way of using this.
Code:
INSERT INTO Products(ProdName, ProdId, Capitalisation)
VALUES ('real estate',543,$575000.00);
If space used within the COLUMNNAME like "Prod ID", use that within []s, but it is a good practice to avoid white space/hyphen usage in COLUMNNAMEs.
Try this in your query analyser.
Code:
exec sp_datatype_info
go
and look for values under LITERAL_SUFFIX and LITERAL_PREFIX columns against "money" value under TYPE_NAME. This would let you know what should be used as prefix and suffix for any datatype, when values are supplied in a query.
Hope that explains.
Cheers!
_________________________
- Vijay G
Strive for Perfection