Knowledge Walls
Gopal Rao
Mumbai, Maharashtra, India
Passcode:
Create table in stored procedure sql server
2148 Views
Hints 
Store procedure used to write to do some specific task like function and the same store procedure can used in various place according to the need to redues the coding.

Difference between function and store procedure :
  1. function can return only one value.but store procedure can return many values with out parameter.
  2. store procedure have input and output parameters but function have only input parameters.
In following example i show simple store procedure to select the table.
Syntax
create procedure procedureName
as
begin
select * from tableName
end
Example
create procedure sp_example
as
begin
select * from Customer
end
Next Topics
Next lessons of current book.
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details