My Blog List

hotinit.com. Powered by Blogger.

Search This Blog

SQL SERVER – Insert Into from Stored procedure

Thursday, 10 May 2012

In SQL DatabaseTo insert into table from stored procedure you need to create a table with fields and data types which comes as a result of executing Stored Procedure.

1. Create Table

CREATE TABLE Employee (EmpId INT)

2. Run Execute Stored Procedure with Insert into above it

INSERT INTO Employee (EmpId)
EXEC Proc_InsertEmployeeId
GO

You have successfully learnt how to insert into table from the store procedure.


Check this post to read how to Insert from one table to another Table.

No comments:

Post a Comment

 

Blogger news

Blogroll

Most Reading

8.6/10