Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 10th, 2005, 02:26 AM
Registered User
 
Join Date: Apr 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to madhuri.sirsat
Default how to write stored procedure

hello sir,
I am the system Administrator in manufacturin company.I want to write down the stored procedure.I can't understand how i do this.
Data comes from 15 diffrent queries including 7 tables and it is stored in one table.After pressing 'Refresh' button from the frontend all the queries must executed and data are stored in the table called Plan41.At the front end side the data displayed from Plan41 table.
how i write down stored procedure for this?for this i have to write down the separate stored procedure for each query or all the queries are included in one stored procedure or anyother solution over this problem like can i do this by using trigger or anything else.
The main purpose for this is that to reduce the time for plan refresh.
send me solution as soon as possible


-Madhuri


 
Old April 10th, 2005, 03:58 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 224
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to ashu_from_india Send a message via Yahoo to ashu_from_india
Default

hi

u dont have to write 15 procedures to execute 15 queries. u can execute all the queries in 1 procedure with proper error handling.
for the syntax part, u can search in Books Online

Ashu

 
Old April 10th, 2005, 02:10 PM
Authorized User
 
Join Date: Mar 2005
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

combine all the queries in a single SP

get the work done

atul






Similar Threads
Thread Thread Starter Forum Replies Last Post
how to write Store Procedure For Search biswapinky SQL Language 2 January 9th, 2008 02:02 PM
How i can write stored procedure confidently? mfarooqw ASP.NET 2.0 Basics 6 June 7th, 2007 05:44 AM
stored procedure kdm260 SQL Server 2000 2 June 19th, 2006 04:45 PM
How to write a retrieve procedure... milindgpatil Oracle 2 August 9th, 2005 10:49 PM
Write stored procs to accept 'all' values in a col pjmair SQL Server 2000 2 May 25th, 2005 01:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.