> Run Query A. If it returns a single record, run Query B. Otherwise, do
> nothing.

maybe something like this?

SET NOCOUNT ON
SELECT someColumns
FROM someTable
IF @@ROWCOUNT > 1
BEGIN
    SELECT someotherColumns
    FROM someotherTable
END
SET NOCOUNT OFF


------------------------------------------------------------------------------
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.

Reply via email to