[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
[sqr-users] if not exists (select * from sysobjects where name ='<>') = processing should stop
- Subject: [sqr-users] if not exists (select * from sysobjects where name ='<>') = processing should stop
- From: Jay Sagadraca <knight7883@yahoo.ca>
- Date: Tue, 25 Apr 2006 17:48:08 -0400 (EDT)
- Delivery-date: Tue, 25 Apr 2006 17:50:38 -0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.ca;h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding;b=pQIYYeWYsJ4o9P8Utt2P73GZc+Kh0X4mC0tgNZUtujC5o/hZsDcoZQiOim1878ghXvqaZY59c8d6wVog1rhnx+zqsxmx1zOg+k90onUySjtf4BVdyeCYunwM3qRPtwD3ZEbehX3NidhaCSh5wPH6slVW9WjbKmmO0IN4EPFvdTc=;
- List-id: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." <sqr-users.sqrug.org>
Hello Gurus,
We have the following :
SunOS 5.9
SQR version 6.2
SYBASE_VERSION=12.5.0
My problem is :
begin-setup
begin-sql on-error=stop
if not exists (select 1 from sysobjects where name = 'Transaction_Table')
begin
raiserror 20004 "Table: Transaction_Table do not exist "
end
end-sql
begin-sql
if exists ( select 1 from sysobjects where name = 'Clients')
begin
print "Found the table ..."
end
end-sql
end-setup
Begin-report
End-report
I would like to abruptly stop the processing of the whole sqr if the table is
not on the sysobjects system table. I tried this (above) but it still goes to
the next begin-sql and process it. Is there another way to do this or another
command to force the sqr to totally stop the processing if it didn't find the
table?
Thanks for the help.
Jay Sagadraca
---------------------------------
Make free worldwide PC-to-PC calls. Try the new Yahoo! Canada Messenger with
Voice
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users