Can anyone help with this update. If I set the values directly in the procedure it updates. If I use the arguments then it want update.
Thank you for any help.
Code:
IF OBJECT_ID('dbo.spUpdateMyCustomersName')IS NOT NULL
DROP PROC spUpdateMyCustomersName
GO
CREATE PROCEDURE spUpdateMyCustomersName (
@arg_CompanyName VARCHAR,
@arg_CustomerID NCHAR )
AS
BEGIN
UPDATE MyCustomers SET
CompanyName=@arg_CompanyName
WHERE
CustomerID=@arg_CustomerID
END;
GO
EXEC spUpdateMyCustomersName
@arg_CustomerID='DUMON',
@arg_CompanyName='Down Under Pub'
Thank you for any help.