How to create stored procedure in SQL Server 2005
-
Hello Friends, How to create stored procedure in SQL Server 2005. Please help me. Thanks in advance. Adarsh
CREATE PROCEDURE mySchema.MyProcedure
(
... Parameters go here ...
)
AS
... SQL Code Goes here ...
GORecent blog posts: *SQL Server / Visual Studio install order *Installing SQL Server 2005 on Vista *Tip of the Day - SysInternals * Meme My Blog
-
Hello Friends, How to create stored procedure in SQL Server 2005. Please help me. Thanks in advance. Adarsh
hi, you have to download some tutorial first ;P
-
Hello Friends, How to create stored procedure in SQL Server 2005. Please help me. Thanks in advance. Adarsh
Hi Adarsh, Open SQL Server Create a database like "Test" Open that database You will find programability--open it you will find stored prtocedure. Rite click ....select new stored procedure A query window will come paste ur SP and run It will get added to your SP For further questions mai me at jijuanair@gmail.com Hope this helps
-
CREATE PROCEDURE mySchema.MyProcedure
(
... Parameters go here ...
)
AS
... SQL Code Goes here ...
GORecent blog posts: *SQL Server / Visual Studio install order *Installing SQL Server 2005 on Vista *Tip of the Day - SysInternals * Meme My Blog
-
hi, you have to download some tutorial first ;P
-
Thanks for your help If you have any link for tutorial. please forward it to me. Thanks Adarsh
compad wrote:
If you have any link for tutorial. please forward it to me.
Can you not use a search engine? The search term "SQL Server Tutorial" will probably give you lots of links to helpful websites.
Recent blog posts: *SQL Server / Visual Studio install order *Installing SQL Server 2005 on Vista *Tip of the Day - SysInternals * Meme My Blog
-
Thanks for your reply. can u have anything more. something like data types, how to declare variable, how to check condition. I am aware of Oracle Procedure. Is the same syntax or something different. Please Help me Adarsh
compad wrote:
how to declare variable
DECLARE @myVariable int -- or what ever type you want.
compad wrote:
how to check condition
IF @myVariable = 123
BEGIN
... Some SQL Code Here
END
ELSE
BEGIN
... Some other SQL Code here
ENDcompad wrote:
I am aware of Oracle Procedure. Is the same syntax or something different.
You might want to read the documentation.
Recent blog posts: *SQL Server / Visual Studio install order *Installing SQL Server 2005 on Vista *Tip of the Day - SysInternals * Meme My Blog
-
compad wrote:
how to declare variable
DECLARE @myVariable int -- or what ever type you want.
compad wrote:
how to check condition
IF @myVariable = 123
BEGIN
... Some SQL Code Here
END
ELSE
BEGIN
... Some other SQL Code here
ENDcompad wrote:
I am aware of Oracle Procedure. Is the same syntax or something different.
You might want to read the documentation.
Recent blog posts: *SQL Server / Visual Studio install order *Installing SQL Server 2005 on Vista *Tip of the Day - SysInternals * Meme My Blog