My ActiveX Script is the following:
Function Main()
set conn = CreateObject ("ADODB.Connection")
conn.open ="Provider=SQLOLEDB;Integrated Security=SSPI;Persist Security
Info=False;Initial Catalog=InventoryDW;Data Source=SQLDB"
Set rsItemLedger = CreateObject ("ADODB.Recordset")
rsItemLedger.Open "Select * From FACT_ITEM_CONVERSION Order By
item_number", conn
rsItemLedger.movefirst
do while not rsItemLedger.eof
if rsItemLedger("trans_qty") = 0 and rsItemLedger("extended_cost") = 0
then
rsItemLedger("pricing_uom") = rsItemLedger("trans_um")
rsItemLedger("pricing_qty") = 0
rsItemLedger("trans_unit_Cost") = 0
rsItemLedger.update
end if
rsItemLedger.movenext
loop
rsItemLedger.close
Set rsItemLedger= nothing
Set conn= nothing
End Function
The errors message display after DTS Execution is the following:
Error Source : ADODB.Recordset
Error Description : Error Code : 0
Error Source = ADODB.Recordset
Error Description : Current Recordset does not support udating. This may be
a limitation
of the provider, or of the selected locktype.
Questions:-
- Any limitation of ADO ActiveX?
- How do I solve this problem?
Many thanks.