[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: Thu, 27 Apr 2006 17:16:30 -0400 (EDT)
- Delivery-date: Thu, 27 Apr 2006 17:18:58 -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=JfJX+lSvR/d62VmJbrq3ftP/6ahuXDAtmLZqSo79KWQIzPnnE1klpPUGaIadc8PGepH2uSvW/L9n7wRdvOGmkbvECLA69JkSwt1Km/g714bzDpgLz4NSDX3ibN3Ju04dw8qrECd5yfKjUJdK1HkzMDVTxqmTROw3vGUsrRBGRhw=;
- List-id: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." <sqr-users.sqrug.org>
Hello Gurus,
Thank you for your help. But 1 more question please. How about in the
begin-setup area? Can we stop the whole process if the table is not created?
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
Thanks,
Jay V. Sagadraca
Markham, Ontario, Canada
email : knight7883@yahoo.ca
---------------------------------
Make Yahoo! Canada your Homepage Yahoo! Canada Homepage
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users