Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stored Procedure

Status
Not open for further replies.

sujitopics

Programmer
Oct 9, 2001
69
0
0
KR
Hi,
I have a sql query like this.
i am using sql server 2000.

select eno, ename, sal from emp where eno='10'

how can i write stored procedure for this above query.
if anybody knows about stored procedure please give me help.
Thanksin advance
Yours
Suji
 
create procedure sp_GetEmployeeDetails
@Eno int,
@Eno int output,
@EName Varchar(30) output,
@Sal Decimal(12,2) output,
as

select @Eno=eno, @Ename=ename, @Sal=sal from emp where eno=@Eno
return

Just check for syntax as I have not run this in sql.
 
create procedure sp_GetEmployeeDetails
@Eno int,
@Eno int output,
@EName Varchar(30) output,
@Sal Decimal(12,2) output
as

select @Eno=eno, @Ename=ename, @Sal=sal from emp where eno=@Eno
return

Just check for syntax as I have not run this in sql.
 
Dear Vishnuprasad

Thankyou VeryMuch
Your Stored Procedure is Working Fine.

Can we Create Stored Procedure in MS Access ?

I need to make use of Stored Procedures in My Java Application

Thankyou Once Again

Yours
Rajesh
 
I dont know much about MS Access but as far as my knowledge I dont think u have any Storedprocedure's in MSaccess.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top