﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Teradata Forums / Teradata  / Teradata Tools and Utilities  / SQL assistant vs BTEQ / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Teradata Forums</description><link>http://www.teradata.com/teradataforum/</link><webMaster>info@teradata.com</webMaster><lastBuildDate>Sat, 21 Nov 2009 06:51:22 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: SQL assistant vs BTEQ</title><link>http://www.teradata.com/teradataforum/Topic8712-10-1.aspx</link><description>Most of the work I do is in unix platform(bteq,mload,tpump,fastload). In bteq we can conveniently put our programmingin unix environment and it looks good. In windows platform I dont appreciate it since I cannot play much with the quality delivery.Thanks and regards,Raja K Thaw</description><pubDate>Wed, 15 Jul 2009 08:11:58 GMT</pubDate><dc:creator>Raja_kt</dc:creator></item><item><title>RE: SQL assistant vs BTEQ</title><link>http://www.teradata.com/teradataforum/Topic8712-10-1.aspx</link><description>Hi, you can execute SQL scripts using BTEQ this way:1st file (BTEQ.bat) contains:---------------------------"c:\Program Files\NCR\Teradata Client\bin\bteq.exe" ( "SCRIPT_NAME.txt" ) "SCRIPT_NAME.log"  -- instead of () use &amp;lt;&amp;gt;, for some reason this forum deletes that part of the string if i use &amp;lt;&amp;gt;2nd file (SCRIPT_NAME.txt) that is executed looks like this:--------------------------------------------------------.SET SESSION CHARSET 'CHARSET_NAME'.SET WIDTH 130;.SET ERRORLEVEL UNKNOWN SEVERITY 16;.SET ERROROUT STDOUT;.SET MAXERROR 1-- either calls logon script or looks like.LOGON DATABASE_CONNECTION_STRING/USER_NAME,PASSWORD;-- main SQL logic is here (inserts, deletes, updates..).IF ERRORCODE &amp;gt; 0 THEN .QUIT 8;.QUIT 0Hope that helps :-).</description><pubDate>Wed, 01 Jul 2009 05:34:40 GMT</pubDate><dc:creator>michaldlouhy</dc:creator></item><item><title>RE: SQL assistant vs BTEQ</title><link>http://www.teradata.com/teradataforum/Topic8712-10-1.aspx</link><description>Boy is that an understatement.  In almost every instance we have run, BTEQ is much faster than SQL Assistant.  I'm not sure why, but  I would think that using native CLIv2 would incur less overhead than ODBC/OLE DB.R</description><pubDate>Fri, 09 Nov 2007 15:21:07 GMT</pubDate><dc:creator>Ron Luebke</dc:creator></item><item><title>RE: SQL assistant vs BTEQ</title><link>http://www.teradata.com/teradataforum/Topic8712-10-1.aspx</link><description>Hi Job_Agent,  There is no difference of where you do COLLECT STATS . It serves the same purpose as in BTEQ and SQL assistant.P.S. BTEQ may be slightly faster as it is CLI than an ODBC, if you are working in a big Client-server network. Again here I am just guessing*Regards,Rayravi</description><pubDate>Thu, 18 Oct 2007 08:07:14 GMT</pubDate><dc:creator>rayravi</dc:creator></item><item><title>RE: SQL assistant vs BTEQ</title><link>http://www.teradata.com/teradataforum/Topic8712-10-1.aspx</link><description>Hi DM,   Yes, you can do all of that using BTEQ.1.To run your script in BTEQ, your should first put it in a file and save it as   It can be run from the UNIX/LINUX prompt as  $ bteq &amp;lt; file_name.bteq  This will invoke the script in bteq2.I am not very sure scheduling in BTEQ, but you can use a unix shell wrapper around your script to schedule it3.There is no need to create a BAT file. a UNIX shell would suffice.4.You can put your logon details in the following format in beginning your script file..logon TDPID/USERNAME,PASSWD;5.The output can be had by redirecting :$ bteq   logHope these things would helpRegards,Rayravi</description><pubDate>Thu, 18 Oct 2007 08:02:49 GMT</pubDate><dc:creator>rayravi</dc:creator></item><item><title>RE: SQL assistant vs BTEQ</title><link>http://www.teradata.com/teradataforum/Topic8712-10-1.aspx</link><description>Hi friends.Thaks for all I cleared max doubts of giving replys.can u any one give the simple script for BTEQ and tell me how to execute that script, tell me step by step.Thaks and RegardsAnil Reddy</description><pubDate>Thu, 18 Oct 2007 03:19:57 GMT</pubDate><dc:creator>anill</dc:creator></item><item><title>RE: SQL assistant vs BTEQ</title><link>http://www.teradata.com/teradataforum/Topic8712-10-1.aspx</link><description>is there any difference in collecting statistics between SQl Assistant and BTEQ&lt;br&gt;</description><pubDate>Sat, 22 Sep 2007 12:34:23 GMT</pubDate><dc:creator>Job_Agent</dc:creator></item><item><title>RE: SQL assistant vs BTEQ</title><link>http://www.teradata.com/teradataforum/Topic8712-10-1.aspx</link><description>I have just started to write script.&lt;br&gt;&lt;br&gt;need help.&lt;br&gt;&lt;br&gt;1. I created a script in teradata.  " select count(distinct medtd_service_no), net_Used, dlvry_tchnlgy_cd							&lt;br&gt;from MEDIATED_CALL_HIST								&lt;br&gt;where medtd_call_start_dt between date - 7 and date - 1&lt;br&gt;and net_Used in ('GS' , '3G' ) &lt;br&gt;and dlvry_tchnlgy_cd in ('VC', 'SM', 'VI')	&lt;br&gt;group by 2,3&lt;br&gt;order by net_Used,dlvry_tchnlgy_cd;"&lt;br&gt;2. I would like to schedule this script?&lt;br&gt;3.How do I do this?&lt;br&gt;4. do i need create a bat file? how do I create / write?&lt;br&gt;5. where do i include my login details?&lt;br&gt;6. Like to have an output file as well?</description><pubDate>Thu, 20 Sep 2007 02:05:53 GMT</pubDate><dc:creator>Dharman</dc:creator></item><item><title>RE: SQL assistant vs BTEQ</title><link>http://www.teradata.com/teradataforum/Topic8712-10-1.aspx</link><description>that was much clear explanation</description><pubDate>Fri, 07 Sep 2007 05:00:58 GMT</pubDate><dc:creator>TdMan</dc:creator></item><item><title>RE: SQL assistant vs BTEQ</title><link>http://www.teradata.com/teradataforum/Topic8712-10-1.aspx</link><description>Hi,&lt;br&gt;After all the things said in the past replies, I noticed one major point missing in the replies which is a major difference between the 2 tools mentioned:&lt;br&gt;&lt;br&gt;1. Conditional logic can be applied in BTEQ whereas SQL Assitant can use only single statements with no conditional logic (.if statements).&lt;br&gt;2. The output of BTEQ reult sets are more proper to formatting statements. Any formatting applied to BTEQ outputs are exactly as specified. Whereas SQL Assitant applies its own formatting to the result set. Hence you cannot assure that the format of the string from SQL Assitant is the right one as specified in the outputting call string.&lt;br&gt;3. The import or export facility is very bare minimal in SQL Assitant whereas BTEQ's import export functionality is much more versatile and flexible and programmable.&lt;br&gt;&lt;br&gt;A BTEQ script is nothing but a simple file in UNIX or Windows environment which can be run using the following command:&lt;br&gt;bteq &lt; infle &gt; outfile where infile is the BTEQ script and outfile is the output or log file.&lt;br&gt;Now how you call the BTEQ command above is your option whether you use a cron or scheduler or do a one time prompt call etc.&lt;br&gt;&lt;br&gt;Hope that helps.</description><pubDate>Thu, 06 Sep 2007 04:42:32 GMT</pubDate><dc:creator>Arun Kumar K</dc:creator></item><item><title>RE: SQL assistant vs BTEQ</title><link>http://www.teradata.com/teradataforum/Topic8712-10-1.aspx</link><description>Bteq has no scheduler, it's just a utility to execute SQLS, do a little bit of formating, export/import small scale data and capable of doing teeny-weeny if else conditions. ... nothing more (that I could remember :o) ...&lt;br&gt;&lt;br&gt;you will have to use a scheduler to run bteq scripts at a certain time ... like cron/at in unix, windows scheduler etc ... (and tones of other third party schedulers available out there)</description><pubDate>Thu, 06 Sep 2007 04:13:31 GMT</pubDate><dc:creator>joedsilva</dc:creator></item><item><title>RE: SQL assistant vs BTEQ</title><link>http://www.teradata.com/teradataforum/Topic8712-10-1.aspx</link><description>so does bteq have a scheduler in it?&lt;br&gt;can we schedule the bteq scripts to our requirements using the bteq tool itself or get it done through the script in bteq?</description><pubDate>Thu, 06 Sep 2007 02:58:51 GMT</pubDate><dc:creator>TdMan</dc:creator></item><item><title>RE: SQL assistant vs BTEQ</title><link>http://www.teradata.com/teradataforum/Topic8712-10-1.aspx</link><description>"Bteq" script is nothing but a bunch of SQLs and any other Bteq commands (like logon, transaction mode, width etc etc .... ) wrapped in a file. (most of us save it with an extension of .bteq but it doesn't matter).&lt;br&gt;&lt;br&gt;This is mostly useful for batch processing when you can put in all the SQLs and bteq command in a file and use bteq to run it from a scheduler ...&lt;br&gt;&lt;br&gt;&lt;br&gt;bteq &lt; processdata.bteq&lt;br&gt;&lt;br&gt;</description><pubDate>Mon, 03 Sep 2007 05:40:28 GMT</pubDate><dc:creator>joedsilva</dc:creator></item><item><title>RE: SQL assistant vs BTEQ</title><link>http://www.teradata.com/teradataforum/Topic8712-10-1.aspx</link><description>I found the replies very useful.&lt;br&gt;&lt;br&gt;Next my doubt is do we have to instal any utility (BTEQ) to run the bteq queries or what is the means to run bteq scripts?</description><pubDate>Mon, 03 Sep 2007 04:53:30 GMT</pubDate><dc:creator>TdMan</dc:creator></item><item><title>RE: SQL assistant vs BTEQ</title><link>http://www.teradata.com/teradataforum/Topic8712-10-1.aspx</link><description>Like to add that &lt;br&gt;BTEQ supports Teradata Specific SQL such as OLAP Function( With by , With, RANK etc), which are not supported by any client utility connected using ODBC.&lt;br&gt;Although there are other equivalent functions available for ODBC, but using ODBC always produces a relational output.&lt;br&gt;&lt;br&gt;Thanks</description><pubDate>Thu, 30 Aug 2007 21:20:36 GMT</pubDate><dc:creator>Nisith Bhattacharya</dc:creator></item><item><title>RE: SQL assistant vs BTEQ</title><link>http://www.teradata.com/teradataforum/Topic8712-10-1.aspx</link><description>Besides Very useful information provided by Jim..&lt;br&gt;BTEQ can be run in a batch mode for exportin,importing (small volumes of data).&lt;br&gt;I can also be used to run useful reports. It can be installed both on Unix and Windows machine. &lt;br&gt;&lt;br&gt;While SQL assistant does allow import/exports but I find BTEQ to be more useful. &lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Vinay Bagare</description><pubDate>Thu, 30 Aug 2007 17:11:58 GMT</pubDate><dc:creator>Vinay Bagare</dc:creator></item><item><title>RE: SQL assistant vs BTEQ</title><link>http://www.teradata.com/teradataforum/Topic8712-10-1.aspx</link><description>BTEQ uses CLIv2 while SQL Assistant uses ODBC driver to connect to Teradata Server.The basic difference between the two is that BTEQ is a command driven utility while SQL Assistant is a GUI.Both used to submit queries to Teradat.&lt;br&gt;&lt;br&gt;BTEQ has its own command using which you can create and run scripts to run queries in a batch.BTEQ supports conditional logic (IF..THEN construct).&lt;br&gt;&lt;br&gt;</description><pubDate>Thu, 30 Aug 2007 12:38:55 GMT</pubDate><dc:creator>LeoIssac</dc:creator></item><item><title>SQL assistant vs BTEQ</title><link>http://www.teradata.com/teradataforum/Topic8712-10-1.aspx</link><description>Can anyone tell me the difference btw running a query or set of query in sql assistant and BTEQ?&lt;br&gt;&lt;br&gt;</description><pubDate>Wed, 29 Aug 2007 05:52:11 GMT</pubDate><dc:creator>TdMan</dc:creator></item></channel></rss>