Teradata Error: 7547 - Deletes all the records from Target Volatile Table...
Can some one help me understand the scenario thats been happening for me I am creating a lot of Volatile Temp tables in my stored procedure. When Executing the stored procedure i am logging the...
View ArticleTeradata - How to create a partition - forum topic by Kbos
Hi everyone... I've started learning about Teradata and I have a doubt on how to create a partition....The table already exists and I suppose I need to do the Alter table sentence, however, I don't...
View ArticleTeradata Error: 7547 - Deletes all the records from Target Volatile Table...
Hi Anand, that's the expected behaviour when the NO LOG option is set, check your DDL and switch it off. Dieter
View ArticleTeradata Error: 7547 - Deletes all the records from Target Volatile Table...
Thanks a Ton for your reply Dieter...
View ArticleString Concat - returning multiple rows in one string cocat row - response...
If the number of elements you want to concatenate is low, you can do something like this: sel databasename ,tablename ,max(case when rnk = 1 then ColumnName else '' end) || max(case when...
View ArticleCast from CHAR(20) to SMALLINT - response (7) by barani_sachin
Hi KS, Below is the insert stmt. create volatile table temp1 (col1 byteint)on commit preserve rows; insert into temp1 values( -1 ); insert into temp1 values( 100 ); insert into temp1 values( 101 );...
View ArticleCast from CHAR(20) to SMALLINT - response (8) by dnoeth
The range of a byteint is -128 to +127, change the datatype to SMALLINT. Dieter
View ArticleCast from CHAR(20) to SMALLINT - response (9) by barani_sachin
Sorry guys, ma bad. Thanks for u r time :)
View ArticleAPI for DBC.SysExecSQL - response (4) by paulxia39
why I can't find sysexecsql???Anyone give me the code?Thanks.
View ArticleQuery Rewriting. - forum topic by barani_sachin
Hi All, I have two versions(One is old which is being rewritten using some new standards) of code both claiming to accomplish the same thing; with the subset of data we tested both seems to give the...
View ArticleCast CHAR/VARCHAR to VARBYTE - response (1) by veskojl
Anyone? Please don't tell me that Teradata is missing this functionality, even MySQL has a cast from string to binary: CAST(str AS BINARY)
View ArticleCast CHAR/VARCHAR to VARBYTE - response (2) by dnoeth
What kind of data is stored in the string? If it's a hexadecimal string why don't you store it as BYTE? In TD14 there's TO_BYTES/FROM_BYTES, e.g. select to_bytes('abcde', 'ascii') Dieter
View ArticleAPI for DBC.SysExecSQL - response (5) by dnoeth
DBC.SysExecSQL is a kind of dummy/placeholder, you can use it within a SP, but it doesn't exist, it never did :-) In newer releases you should use EXECUTE IMMEDIATE instead. Dieter
View ArticleError while casting to decimal! - forum topic by barani_sachin
Hi All, I am trying to cast a column into decimal but its failing with the error sel cast(a25 as decimal(38,2)) from TempUpdateSELECT Failed. 2617: Overflow occurred computing an expression involving...
View ArticleBest way to generate the Sequential numbers : CSUM or IDENTITY columns? -...
Hi Dieter, I've always been told to steer clear of the IDENTITY in the past because it has some limitations in the past. Such as the gaps in numbers and the limit to the number of values that could be...
View Articledisable enable logons - forum topic by mikesteeves
We have a need to selectively disable logons as part of our D/R test. I know how to disable ALL logons but we would like to disable logons and then enable only specific groups over a period of time...
View ArticleTeradata - How to create a partition - response (1) by Kbos
Hi, I've realized and I was trying to create the partition on a table which contains data, so What I did was create a new table with the same structure and the partition and it worked fine :) thanks
View ArticleCLI error: MTDP: EM_GSSINITFAIL(235): call to gss_init failed - response (3)...
Had the same problem. If you look at strace for bteq it is trying to find the file /usr/teragss/linux-i386/client/etc/tdgssconfig.bin. I had the file...
View Articledisable enable logons - response (1) by goldminer
I was playing around a bit and came up with the following... Not sure if this is what you are looking for: sel 'revoke logon on all from ' || '"' || trim(databasename) || '"' || ';' (TITLE '') from...
View Article