[dba-SQLServer] Executing a SP

Jonathan Guise jonathan.guise at donnslaw.co.uk
Wed Aug 24 10:32:45 CDT 2005


Try the following in query analyzer: -
____________________________________________________________________
EXEC upWebNewsSource_SelectOne @ID = 3
____________________________________________________________________


-----Original Message-----
From: John W. Colby [mailto:jwcolby at colbyconsulting.com] 
Sent: 24-Aug-2005 16:24
To: dba-sqlserver at databaseadvisors.com
Subject: [dba-SQLServer] Executing a SP


How do I execute a SP to see the resulting data.

The SP is:

----------------------------------------------------------------------------
-----
-- Stored procedure that will select an existing row from the table
'WebNewsSource'
-- based on the Primary Key.
-- Gets: @ID int
----------------------------------------------------------------------------
-----
CREATE PROCEDURE [dbo].[upWebNewsSource_SelectOne]
	@ID int
AS
SET NOCOUNT ON
-- SELECT an existing row from the table.
SELECT
	[ID],
	[Source],
	[RSSURL],
	[RSSSelect],
	[RSSTitle],
	[RSSLink],
	[RSSDescription]
FROM [dbo].[WebNewsSource]
WHERE
	[ID] = @ID


GO

It is in database RSSFeeds
I am logged in and trying to use query analyzer to execute the SP but
obviously don't know how.  

Thanks,

John W. Colby
www.ColbyConsulting.com 

Contribute your unused CPU cycles to a good cause:
http://folding.stanford.edu/


_______________________________________________
dba-SQLServer mailing list
dba-SQLServer at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-sqlserver
http://www.databaseadvisors.com
-------------- next part --------------

The contents of this message and any attachments are the property of Donns Solicitors 
and are intended for the confidential use of the named recipient only.  They may be legally
 privileged and should not be communicated to, or relied upon, by any other party without 
our written consent.  If you are not the addressee, please notify us immediately so that we 
can make arrangements for its return.  You should not show this e-mail to any person or
 take copies as you may be committing a criminal or civil offence for which you may be
 liable.  The statement and opinions expressed in this e-mail message are those of the 
writer, and do not necessarily represent that of Donns Solicitors.  Although any files attached
 to this e-mail will have been checked with virus protection software prior to transmission, 
you should carry out your own virus check before opening any attachment.  
Donns Solicitors does not accept any liability for any damage or loss which may be caused 
by software viruses...


More information about the dba-SQLServer mailing list