Quantcast
Channel: Teradata Forums - All forums
Viewing all 27759 articles
Browse latest View live

How to spell out numeric value in English words by select query. - response (5) by dnoeth

$
0
0

Hi Sai,
if it's between 1 and 9999:
 
TO_CHAR((x-1900)*10000+101 (DATE) ,'yyyysp')

 

Dieter


How to spell out numeric value in English words by select query. - response (6) by ksaikrishna

How to spell out numeric value in English words by select query. - response (7) by ksaikrishna

$
0
0

So we can't spellout beyond 9999

How to spell out numeric value in English words by select query. - response (8) by dnoeth

$
0
0

You can :-)
http://developer.teradata.com/node/182312
 
 
Dieter

Information about Inverted list database - response (2) by Raja_KT

$
0
0

Hi Dieter,
I just  to know about the features of Inverted list. I guess it is a database.
I am seeing that set processing can have more chances of lock contention than a row processing. Please confirm. If so, how does Teradata overcome this hurdle? I know they serialize in tpump.
Thanks and regards,
Raja

idle-session alerts - response (12) by amittera

$
0
0

Hi ,
 
I need to put two alerts on TD 12 Manager.
 
1) Blocked sessions emailed to by if they are in blocking status for more than an hour, and give who blocked who?
2) Get a report/email of idle sessions who are idle for let say 1 hr.
Apart of them getting aborted automatically, is there any other way?
Also, if you can tell me what is the impact of idle session being logged in?
Regards,
 

TeraData JDBC and WebLogic 12c - response (1) by tomnolan

$
0
0

Teradata JDBC Driver support for WebLogic 12c is in progress. We will provide an update when support is available.

no data condition with dynamic result set - forum topic by j355ga

$
0
0

 

Anybody know how to detect NO DATA condition for a select in dynamic result set?  

 

This simple example detects the no condition  for the UPDATE but  the select does not generate a no data condition.

 

 

 

 

 

replace  PROCEDURE   get_id ( in  p_id char(7) )

dynamic result sets 2

 

P1: BEGIN

 

declare v_sql_sel varchar(2000);

declare v_sql_upd varchar(2000);

declare v_test integer default 1;

 

declare emp_hdr_sel cursor with return only  for s1;

declare emp_hdr_upd cursor with return only  for u1;

 

declare exit handler for not found insert into    sp_log values(current_timestamp, v_test, 'There was no data');

 

set v_sql_sel =  'select lname from  emp where id=?;';

 

set v_sql_upd =  'update   emp set lname=''FOO'' where id = ? ; ';

 

prepare s1 from v_sql_sel;

open emp_hdr_sel using p_id;

 

 set v_test =2;

 

prepare u1 from v_sql_upd;

open emp_hdr_upd using p_id;

 

END P1;

 

Forums: 

TPT - Tenacity - response (1) by Fred

$
0
0

The utilities support a "configuration file" to set parameter defaults, and many sites use some sort of "wrapper" scripts. But if your jobs were not designed that way to start with, neither of those will help.
But reading between the lines, it seems you really would prefer to use utility throttles rather than Tenacity. What throttle limits do you have for FastLoad, MultiLoad, and/or FastLoad/MultiLoad combined?

Analysis Service & Teradata - The provider 'TDOLEDB.1' is not registered. - forum topic by russell.huynh

$
0
0

Hi, I am able to create the cubes using the TDOLEDB provider in Analysis Service and only come across the following error when processing the cubes. "The provider 'TDOLEDB.1' is not registered."

I am running the following configurations

- Windows 7

- Database: Teradata 14.00.03.02 on VMware

- Analysis Service - SQL Server 2012 64 bit
- Teradata ODBC Driver Version      14000004

- TDOLEDB provider           WINDOWS_i386.14.00.00.01

The issue is surrounding the 32bit TDOLEDB provider (Teradata only offers a 32-bit OLEDB Provider) conflicting with the 64 bit SQL Server 2012. I am able to get the cube to processing if I modify the Data Source connection string and use the .NET Providers for Teradata which is a 32/64 bit.

Am I correct to make the above assumption or is there a work around that I can do and get it to work with the 32 bit TDOLEDB provider?

Forums: 

TPUMP for Active Ware housing - response (3) by Nishant.Bhardwaj

$
0
0

Hi Experts,
Any comments/suggestions on the above pls..
Cheers!
Nishant

TPUMP for Active Ware housing - response (4) by dnoeth

$
0
0

Hi Nishant,
as TPT uses the same protocols as the standalone load tools both support Access Modules the same.
I can't remember exactly in which release those AMs have been introduced , but for MQ series it's at least V2R6.1 (probably much longer) and JMS at least TD12 :-)
 
 
Dieter
 

no data condition with dynamic result set - response (1) by dnoeth

$
0
0

Hi Jeff,
i don't know if it's possible to use a NOT FOUND handler for a dynamic cursor, but your 2nd cursor should never work as an UPDATE can't be used for OPEN, you have to use Dynamic SQL instead.
What happens when you remove the handler or change it to CONTINUE instead of EXIT?
 
Dieter

Loading a teradata table using multiple files sample script - forum topic by ashish_krs2008

$
0
0

Hi All,
 Can anyone please provide me sample  a tpt script or mload script  which can load data from multiple flat files into a teradata table and a sample script to upsert,insert a teradata table from a staging table.

Forums: 

Sample Script for loading data from multiple files into teradata table - forum topic by ashish_krs2008

$
0
0

Hi All,
Can anyone provide a sample script for loading data from multiple files into teradata table (TPT/MLOAD) and a sample script which upsert,insert data from a one table to another table in teradata.

Forums: 

Stream API for R - response (2) by tanya@tickel.net

$
0
0

SELECT score
    FROM STREAM (
        ON (
            SELECT
                stock_id, open_price
            FROM

                myschema.mytable
        )

        PARTITION BY loan_product
        SCRIPT ('RSCRIPT my_rscript.R "arg1""arg2"')

        OUTPUTS ('score numeric(5,2)')

);
 

 

 

    

 

 

Bug reports - forum topic by tanya@tickel.net

$
0
0

Hi just couldn't find the bug reports link anywhere so making one on the forum.

Forums: 

Bug reports - response (1) by tanya@tickel.net

$
0
0

ncluster_loader requires the sql scripts for the begin-script and end-script to have

  1. every SQL statement on one single line -- annoying for long queries
  2. no extra newlines between SQL statements

 
I was hoping this would be fixed in 5.10 but looks like no?
 
~T

guide for aster client - response (2) by tanya@tickel.net

[Teradata][ODBC Teradata Driver] Login timeout expired - forum topic by hammadmn

Viewing all 27759 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>