I created a database in SQL Server. I follow these:
Programmability -> Stored Procedures -> right click -> new stored procedures.
I write this code in my stored procedure:
create procedure Insert_Users_legal
(
@name nvarchar(50),
@agentPosition int,
@email varchar(50),
@mobile char(11),
@phone char(11),
@postalCode char(10),
@address nchar(10)
)
as
set nocount on
insert into users_legal (name, agentPosition, email, mobile, phone, postalCode, address)
values (@name, @agentPosition, @email, @mobile, @phone, @postalCode, @address)
select CAST(scope_identity() as int) as id_legalUser
return
But when I save my stored procedure, it doesn't show up in stored procedure folder in the Object Explorer.
What can I do?