Im trying to update a price of an item based of the name however the query works fine in SQL managment studio, however in samba scripts It doesnt seem to do anytthing and Im not sure how to debug.
So here my query:
UPDATE p SET [Price] = 32.9 FROM [MenuItems] i, [MenuItemPrices] p WHERE i.id = p.id AND i.Name = 'Small Hot Chocolate'"
And heres my code in samba scripts:
function localUpdate(){
var qry = "UPDATE p SET [Price] = 32.9 FROM [MenuItems] i, [MenuItemPrices] p WHERE i.id = p.id AND i.Name = 'Small Hot Chocolate'";
sql.Query(qry);
}
