Link to home
Start Free TrialLog in
Avatar of lynnton
lynnton

asked on

ala_frosty where are you?

To clarify a little ambiguity there .. you actually create the stored procedure on the SQL Server either through the enterprise manager, or query analyzer. You then call that procedure from vb as described.

Create procedure pr_OperatorUnavailable
AS
BEGIN
-- INSERT ALL THE CODE HERE

-- You don't actually need the BEGIN END commands, but I like using them anyway.
END
GO
___________________________________________________________________________

how to create a procedure?

Thanks,
Lynnton
Avatar of Hilaire
Hilaire
Flag of France image

I don't know where ala_frosty is, but I can help if you tell us what the question is ...

Do you already have a set of SQL statements you need to put in a stored procedure ?
What should be the parameters, if any ?
Avatar of ShogunWade
ShogunWade

q)  "how to create a procedure?"


a) Using the method you have described in your question.
Avatar of Partha Mandayam
Here's an example.
create procedure test
( @empno varchar(10)
)
as
select * from employee
where empno=@empno
ASKER CERTIFIED SOLUTION
Avatar of ala_frosty
ala_frosty

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial