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!

TSQL - Variables -- :( Help me plz

Status
Not open for further replies.

WMitchellCPQ

Programmer
Sep 28, 2001
54
0
0
US
Hi Helpful SQL coders,

Im behind on a deadline and would really appreciate some help. Im soberly new to T-SQL :(

I've a webserice calling a stored procedure to insert data.
Can someone show me an example on how to use variables in stored procedures.

This is as the fields affected by the call are differ.

Thanks in advance
 
Code:
create procedure procedure_name
   @var1 as varchar(10),
   @var2 as int
as
statements go here
To run this procedure
Code:
procedure_name @var1='testing', @var2=25

Denny

--Anything is possible. All it takes is a little research. (Me)
 
no probem.

Denny

--Anything is possible. All it takes is a little research. (Me)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top