Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old May 12th, 2005, 09:52 PM
mansoorafzal mansoorafzal is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Location: Lahore
Posts: 139 mansoorafzal User rank is Private First Class (20 - 50 Reputation Level)mansoorafzal User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 20 h 12 m 7 sec
Reputation Power: 4
View Query from Stored Procedure in Query Analyzer

hello,

we write a stored procedure which selects the rows from a table depending upon the provided selection criteria. now, we run the stored procedure in query analyzer. how can we display or view the resulting query when the selection criteria is provided. if any one know, please let me know too.

Reply With Quote
  #2  
Old May 13th, 2005, 12:25 PM
Lauramc's Avatar
Lauramc Lauramc is offline
SQL Slarentice
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2004
Location: In My Happy Place
Posts: 1,798 Lauramc User rank is General 3rd Grade (Above 100000 Reputation Level)Lauramc User rank is General 3rd Grade (Above 100000 Reputation Level)Lauramc User rank is General 3rd Grade (Above 100000 Reputation Level)Lauramc User rank is General 3rd Grade (Above 100000 Reputation Level)Lauramc User rank is General 3rd Grade (Above 100000 Reputation Level)Lauramc User rank is General 3rd Grade (Above 100000 Reputation Level)Lauramc User rank is General 3rd Grade (Above 100000 Reputation Level)Lauramc User rank is General 3rd Grade (Above 100000 Reputation Level)Lauramc User rank is General 3rd Grade (Above 100000 Reputation Level)Lauramc User rank is General 3rd Grade (Above 100000 Reputation Level)Lauramc User rank is General 3rd Grade (Above 100000 Reputation Level)Lauramc User rank is General 3rd Grade (Above 100000 Reputation Level)Lauramc User rank is General 3rd Grade (Above 100000 Reputation Level)Lauramc User rank is General 3rd Grade (Above 100000 Reputation Level)Lauramc User rank is General 3rd Grade (Above 100000 Reputation Level)Lauramc User rank is General 3rd Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 18 h 23 m 51 sec
Reputation Power: 1143
In your query analyzer, type the name of the procedure in the query window. Like this as an example:
Code:
sp_Your_Procedure yourparameter1, yourparameter2

Is that what you were asking?

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft SQL Server > View Query from Stored Procedure in Query Analyzer


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT