an ASP.NET Open Source CMS & eCommerce platform
Search:
Last Post 3/2/2009 11:54:45 AM By macker999. 2 replies.
2/26/2009 3:33:42 PM
macker999
Posts: 30
Joined: 10/11/2008
custom dsc_update
Hi Lukezy
 
I am working on a custom update module for our web site that pulls stock from inventory system. This will create one custom field.
 
I then need to update this value using an update stored procedure. I have this t-sql which works in the query analyser
 
UPDATE dsc_product
SET customfields.modify('
 replace value of (//ArrayOfCustomField/CustomField/Value/text()) [0]
 with "TEST VALUE"')
WHERE productid = 21211
 
I am replicating the DSC_Product_Update stored procedure and modifying it to use the above code but I am unsure of how to pass a parameter  @CustomFieldvalue for the value "TEST VALUE".
 
Can you help me with this?
 
 
 
2/26/2009 4:18:38 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: custom dsc_update
You can change the current parameter @CustomFields XML to @CustomFieldValue NVARCHAR(MAX) and then change the update statement to use the one you described above.
DotShoppingCart Staff
3/2/2009 11:54:45 AM
macker999
Posts: 30
Joined: 10/11/2008
Re: custom dsc_update
Thanks