S
shank
I'm getting the following error...
Microsoft OLE DB Provider for SQL Server error '80040e07'
Disallowed implicit conversion from data type varchar to data type money,
table 'wsOrders', column 'ShippingCost'. Use the CONVERT function to run
this query.
What I gather is that I'm trying to insert a varchar into a money field.
That is not the case however. Both fields are money. I'm going from one SQL
table on serverA to an identical table on SQL serverB.
My variable is setup like...
<% io_ShippingCost = (rsOrders.Fields.Item("ShippingCost").Value) %>
My insert statement is...
<%
Dim DataConn
Set DataConn = Server.CreateObject("ADODB.Connection")
DataConn.Open MM_KasKSS_STRING
SQL = "INSERT INTO wsOrders (ShippingCost) "
SQL = SQL & "Values ('" & io_ShippingCost & "')"
DataConn.Execute(SQL)
%>
What am I doing wrong?
Does anyone have examples of the CONVERT function?
thanks!
Microsoft OLE DB Provider for SQL Server error '80040e07'
Disallowed implicit conversion from data type varchar to data type money,
table 'wsOrders', column 'ShippingCost'. Use the CONVERT function to run
this query.
What I gather is that I'm trying to insert a varchar into a money field.
That is not the case however. Both fields are money. I'm going from one SQL
table on serverA to an identical table on SQL serverB.
My variable is setup like...
<% io_ShippingCost = (rsOrders.Fields.Item("ShippingCost").Value) %>
My insert statement is...
<%
Dim DataConn
Set DataConn = Server.CreateObject("ADODB.Connection")
DataConn.Open MM_KasKSS_STRING
SQL = "INSERT INTO wsOrders (ShippingCost) "
SQL = SQL & "Values ('" & io_ShippingCost & "')"
DataConn.Execute(SQL)
%>
What am I doing wrong?
Does anyone have examples of the CONVERT function?
thanks!