Monday 20 August 2012

How to use Exec in sql server during stored procedure

How to use Exec in sql server during stored procedure
create procedure [schema].[Procedure_name]
@fielname1 varchar(16)=null,
@fielsname2 varchar(16)=null
as
select
[filedname1] ,[fieldname2] from [table_name]
where fieldname3=@fielname1

Exec [Procedure_name] ' xyz'
xyz ..the value from which you want to give condition.
Share This
Previous Post
Next Post

FYJC XI standard online admisson Process and declaraton of Merit list . Cut off List For prevous year also . 10 Th Results onlne declaraton Maharashtra Region .

0 comments: