Need to fire 1000 different SQL statements and verify results automatically
Teradata Teradata Discussion Forums Teradata.com Discussion Forum
Visit Teradata.com
Home       Guidelines    Member List
Welcome Guest ( Login | Register )
        


This online forum is for user-to-user discussions of Teradata products, and is not an official customer support channel for Teradata. If you require direct assistance, please contact Teradata support.


Need to fire 1000 different SQL statements... Expand / Collapse
Author
Message
Posted 5/1/2006 12:08:42 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 6/18/2007 5:02:00 PM
Posts: 18, Visits: 1
Hi,

I have some 1000 SQL statements which I have written based on different logic. Now I need to run those scripts and verify results againse DB. I can manually run all scripts and verify the results manually against DB.

I need some idea or information if these can be done more efficiently by some sorts of automation or any such tool.

If anyone came with such situation then please pass me the information.

Thanks,
rlaskar
Post #4060
Posted 8/7/2006 3:57:16 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 12/13/2006 3:52:00 PM
Posts: 14, Visits: 1
rlaskar:
To my knowledge, there are two ways you can automate.

1: Type in all your SQL statements in SQL Assistant. Got to Teradata SQL Assistant's Menu > File > Export Results option. After selecting the option hit F5 function key (or run the SQL). It will ask for enter a file name to save the output. (if you are using Teradata 7.1.0.07 version, go to Tools > options > Export/Import tab and select appropriate options to write the output).

2: Type all your SQL statements in BTEQ script and execute the BTEQ script. Divert your output using a nohup statement.



Regards

S S

Post #4829
Posted 8/12/2006 7:36:46 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 10/9/2007 3:07:00 PM
Posts: 13, Visits: 1
I am not entirely clear what do you mean by verifying results against DB, but if the only thing you need is to compare the results against some fixed values, you could use the http://www.excelsql.com/ and do it in Excel.
Post #4887
Posted 8/26/2006 8:05:10 PM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: 9/24/2008 11:55:46 AM
Posts: 168, Visits: 45
As suggested by Mr.Shastry, you can either use SQL assistant's export option or re-direct the out while running the BTEQ script.

One other way is to use BTEQ's .Export command.You have several modes in which BTEQ transfer the output to destination file.


Leo Issac

"Wants to Learn More!"

Post #4989
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.


All times are GMT -5:00, Time now is 12:50pm

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.063. 8 queries. Compression Disabled.