Wrox Programmer Forums
|
ASP CDO As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP CDO 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 February 1st, 2005, 05:07 AM
Registered User
 
Join Date: Jan 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to sumathra
Default how to run SQL server stored procedure

how to run SQL server stored procedure and where to be specified execution command.

sumathra
 
Old February 1st, 2005, 01:40 PM
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

Please check the following:

http://databases.about.com/od/sqlser...toredprocs.htm
http://www.4guysfromrolla.com/webtech/111499-1.shtml

Om Prakash
 
Old February 1st, 2005, 11:56 PM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Vadivel Send a message via Yahoo to Vadivel
Default

Check out Microsoft support article regarding this @ http://support.microsoft.com/kb/q164485/

Best Regards
Vadivel

MVP ASP/ASP.NET
http://vadivel.thinkingms.com
 
Old February 2nd, 2005, 01:27 PM
Authorized User
 
Join Date: Jan 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Create a recordset object , a connection object

if output procedure then use
Set objrs=objcommand.execute(ra,parameters,options)

if no rows expected and only scripts in proc have to run then
objcommand.Execute ra,parameters,options

this has complete info http://www.w3schools.com/ado/met_comm_execute.asp



 
Old February 3rd, 2005, 11:26 PM
Authorized User
 
Join Date: Feb 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

There are a lot of ways to call stored procedure from ASP. The easiest and depentable way is the following:

strSQL= "Exec Sproc_ViewOrder " & "'" & parameter1 & "'," & parameter2
set rOrder=Server.CreateObject("ADODB.Recordset")
rOrder.Open strSQL, ConnObj, 1, 3

I use this way for all my stored procedure call.

James
Top-Ink.com
www.top-ink.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET & SQL Server 2K Stored Procedure kwilliams ASP.NET 2.0 Basics 7 May 10th, 2006 12:55 AM
Scheduling a stored procedure to run every 30 minu palvin SQL Server 2000 6 August 4th, 2005 08:57 AM
SQL Server Stored Procedure doug SQL Server 2000 2 February 22nd, 2005 03:04 PM
Sql server Stored procedure ranakdinesh BOOK: Professional C#, 2nd and 3rd Editions 2 May 29th, 2004 12:08 AM
RUN DTS from Stored Procedure AyatKh SQL Server DTS 2 April 11th, 2004 11:44 AM





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