Groups | Blog | Home
all groups > sql server (alternate) > january 2004 >

sql server (alternate) : Question regarding Stored Procedures, Views and ASP



neil.lloyd NO[at]SPAM fdtsolutions.com
1/7/2004 8:10:39 AM
Please could someone explain to me the differences between a stored
procedure and a view.

The reason for this question is I have two almost identical ASP pages.
Both get the same results but one uses a stored procedure and one uses
a view. If the query returns no results the 'view page' generates
errors and therefore I have to check for BOF and EOF, whereas the
'stored procedure page' does not generate errors and instead would
appear to return a recordset with 0 entries.

Thanks in advance

Erland Sommarskog
1/7/2004 11:39:04 PM
Neil (neil.lloyd@fdtsolutions.com) writes:
[quoted text, click to view]

It might more have to do with who you call them. Could you post the
code, including how you set up cursor type and all? The SP code can
also be useful.


--
Erland Sommarskog, SQL Server MVP, sommar@algonet.se

Books Online for SQL Server SP3 at
AddThis Social Bookmark Button