@@rowcount would tell you the number of results!
Neil
----- Original Message -----
From: "Norman Elton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 30, 2000 9:14 PM
Subject: SQL Stored Procedures
> I've got a SQL Server book, and am struggling to make heads or tails of
it.
> Here's what I'm trying to do:
>
> Run Query A. If it returns a single record, run Query B. Otherwise, do
> nothing.
>
> I think I understand how to run Query A. I understand how to build a
simple
> IF/THEN structure, but how do I refer to the number of returned records
from
> Query A?
>
> If anyone has any good pointers or URLs on sprocs, I would be most
> appreciative!
>
> Thanks!
>
> Norman Elton
> Information Technology
> College of William & Mary
>
> --------------------------------------------------------------------------
----
> Archives: http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.