Commerce Server General - Using Numeric SQL Data Type for Orders Mapped Storage

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > September 2006 > Using Numeric SQL Data Type for Orders Mapped Storage





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Using Numeric SQL Data Type for Orders Mapped Storage
Colin Bowern

2006-09-29, 1:31 am

Has anyone been able to use the Numeric data type with mapped storage? If I
use

<Column Name="ExchangeRate" DataType="numeric" IsNullable="true" />

I get:

Microsoft.CommerceServer.Runtime.Orders.SqlSchemaValidationException: Column
PurchaseOrders.ExchangeRate referenced in Orders storage mapping file has a
different data type than the corresponding entry in the SQL schema..

If I use the data type with the scale and percision specification as per the
schema editor in SQL Management Studio:

<Column Name="ExchangeRate" DataType="numeric(18,8)" IsNullable="true" />

I get:

Microsoft.CommerceServer.Runtime.Orders.MappingException: Error initializing
Schema mapping. Details: Error G0032 - Column PurchaseOrders.ExchangeRate
type numeric(18,8) is not an allowed relational type.

According to the documentation numeric is a valid type for use in mapping.
I just can't figure out how to get it working and I haven't found any other
examples to indicate the correct way to do this.

Cheers,
COlin


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com