Quantcast
Channel: How to write stored procedure? - Stack Overflow
Viewing all articles
Browse latest Browse all 4

Answer by kevev22 for How to write stored procedure?

$
0
0

You are looking for the INSERT statement.

CREATE PROCEDURE InsertTerritory (     @territoryId int    ,@territoryDescription nvarchar(200)    ,@regionId int)ASBEGIN    INSERT INTO Territories (Id, [Description], RegionId)    VALUES (@territoryId, @territoryDescription, @regionId)ENDGO

Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>