Im trying to get the value from BrandID in one table and add it to another table. But I can\'t get it to work. Anybody know how to do it right?
CREATE PROCEDURE
In sql 2012 (and maybe as far back as 2005), you should do this:
EXEC AddBrand @BrandName = 'Gucci', @CategoryId = 23