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

Stats collection inside SP's - response (12) by barani_sachin

$
0
0

Thanks Dieter for this workaround :)
So if we doesnt have a table which has the same name as the VT in the default database for the particular user it wont be a problem rite? i.e we dont need to concatenate username into the VT's and then do collect stats? Because while compiling its throwing warning such as
SPL5000:W(L9), E(3806):Table/view/trigger name 'temp' is ambiguous.


Stats collection inside SP's - response (13) by dnoeth

$
0
0

I prefer a naming convention for VTs (like VT_tab)  so there's never any chance that a permanent table with the same name exists :-)
Dieter

Stats collection inside SP's - response (14) by barani_sachin

$
0
0

thanks again for your timely replies :) Could pls redirect/explain me to a link where i can get a good definition/difference for
SECURITY OWNER, CREATOR, DEFINER, INVOKER

Visual Studio 2012 Server Explorer does not show Teradata provider - forum topic by fwaris

$
0
0

Hi I installed the latest version of the .Net driver (14.10).
I have both VS 2010 and VS 2012 installed.
In VS 2010 the Server Explorer shows the .Net provider for Teradata but VS 2012 does not.
I was expecting the latest version to work with the Visual Studio 2012.
Can someone please clarify.
Thanks,
Faisal
 

Tags: 
Forums: 

Stats collection inside SP's - response (15) by dnoeth

$
0
0

The Stored Procedues and the DDL manual?
Dieter

Teradata SQL Assistant - Database Explorer Window - forum topic by Shadyguy904

$
0
0

I am having problems with Teradata Assistant (verion Teradata.Net 13.0.0.14) The Problem is with Database Explorer window becuse it is fixed length and width and I can´t adjust it as with the  answer and history windows. It seems to be docked, with no way of unpinning. I have tried seemingly everything. Any assistance would be greatly appreciated.
I found a post on StackOverflow with the exact same issue:
http://stackoverflow.com/questions/14339475/teradata-assistant-database-explorer

Forums: 

Location of SQL History in Studio - forum topic by mahesh

$
0
0

Hi,
  I am trying to IMPORT a large (64 MB)  SQL History from a XML file (which was EXPORTed on another machine using Studio) to my local machine and it looks it is not doing anything.  I am trying to figure out where exactly the SQL History is stored in Studio, so that I can probably manually add my entries there. I searched in Workspace and I couldnt find a clue where the SQL History is stored for Studio. Any help?
 
Thanks
Mahesh

Complex Transactions in Stored Procedures - forum topic by rtefft

$
0
0

We perform ETL on a table of transactions.  After loading the transaction table, we want to use Stored Procedures (SPs) to perform the very complex business validations, and then to apply the transactions against a dozen permanent state tables.  The nature of the data requires sequential processing of the transactions since some may be dependent on others or affect the results of others.  Fortunately the data volume is very small.
As part of this effort, a small web app is being built to enable some manual cleanup of transactions which fail validation.  We want it to call the same stored procedures to validate and apply the changes that the ETL does.  This will ensure consistency and prevent duplicate coding.  Validation and processing of a single trasnaction will span multiple procedures, and we need to have complete control over the rollback/commit activity.  ANSI mode appears to offer this, but  does anyone have any experience or suggestions on doing this?  Several times I have seen "do not use ANSI mode" when calling procedures (especially from .Net) so I am hoping for some guidance.  We can't afford to waste weeks of effort only to find out this approach isn't feasible.
Any thoughts would be appreciated.
-Rich

Forums: 

TPT 14 WorkingDatabase and TargetTable getting crossed - response (1) by TonyL

$
0
0

The problem is this line in the TPT job script:
               LogTable                = @TargetTable || '.LG_Trans'
The log table is a fully qualified table name with the target table name as the database name.
I think that was not your intention.
I believe this is your intention:
               LogTable                = @TargetTable || '_LG_Trans'

What, no REPEAT(X,n) function for Teradata? - response (3) by jlwilliford

$
0
0

That's equivalent to the "n" parameter in your REPEAT function.  The number of times you intend to repeat the character.  mcrad pegged this one...

FASTLOAD Error - Loading Fixed Length file to Table - response (1) by ThomasNguyen

$
0
0

Hi Kiranwt,
You need to remove the character ':' in front of the fields defined in the DEFINE command, it will become:
DEFINE
EID(CHAR(1)),
ENM(CHAR(5)),
ECD(CHAR(2)),
ESAL(CHAR(5))
FILE=EMP_FLAT.TXT;
 
Also, the fields in the input record must match with the DEFINE command. With the above DEFINE command, each record has 13 characters; while in your data file, each record has only 10 characters.
Thomas

Tpump Error, Invalid session mode - response (1) by feinholz

$
0
0

The user cannot change the session mode.
TPump will always run in Teradata mode.

Teradata SQL Assistant - Database Explorer Window - response (1) by Shadyguy904

BTEQ not remove trailing blank - response (6) by KS42982

$
0
0

You can create a new task in informatica and in the properties you can add - exec macroname .. and run that task using informatica (assuming you have all setup connection already existing between informatica and teradata)

row concatenation for dummies? AKA oracle wm_concat() teradata equivalent - response (9) by KS42982

$
0
0

You need to RANK on all these columns on which you need to do grouping. Keep adding them into order by clause and you will get rank based off of the unique combination of all the columns that you need in grouping. Hope it helps.


RODBC system error 193 - forum topic by bkj123

$
0
0

Good afternoon.
I've been connecting Teradata and RStudio with RODBC on a windowsXP (32 bit) laptop for a while.  Example code is at the bottom of this post.  
I am not able to run this code on a Windows 7 64 bit laptop.  I receive a message of "[RODBC] ERROR: state IM003, code 160, message Specified driver could not be loaded due to system error  193:  (Teradata, C:\Program Files (x86)\Teradata\Client\13.10\ODBC Driver for Teradata\Lib\tdata32.dll)."
As far as I can see there are a couple of differences between the 2 setups:
1. WindowsXP is 32 bit with 32 bit drivers and the Windows 7 is 64 bit with 32 bit drivers.
2. The DSN (e.g. "_Prod") on the XP laptop is a system DSN.  The Win7 laptop uses a user dsn since I don't have administrator rights on this laptop.
Any suggestions of how to resolve?  Can I go an alternative route like JDBC?  Thank you - Brian
 
 

library(RODBC)

myconn <-odbcConnect("_Prod",uid="xxxxx",pwd="zzzzz")

sqlStr <- "Select * from databasex.tablez;"

sqlQuery(myconn, sqlStr, believeNRows = FALSE);

Forums: 

SQL_SELECTOR: TPT15105: Error 13 in finalizing the table schema definition - response (6) by ericsun2

$
0
0

Hi feinholz@,
For a table with 3 columns
NET_ID DECIMAL(38,0) NOT NULL,
NET_NAME VARCHAR(300),
NET_KEY DECIMAL(9,0) NOT NULL

What will be the FILE_SCHEMA in TPT 13.10 scipt? I tried the following but got " TPT15105: Error 13 in finalizing the table schema definition"
DEFINE SCHEMA OUTPUT_FILE_SCHEMA
(
"NET_ID"  Varchar(18),
"NET_NAME" VARCHAR(300),
"NET_KEY"  Varchar(9)
);
DEFINE OPERATOR SQL_SELECTOR
TYPE SELECTOR
SCHEMA OUTPUT_FILE_SCHEMA
ATTRIBUTES
(
  INTEGER MaxDecimalDigits = 18,
  VARCHAR DateForm = 'ANSIDATE',
  VARCHAR PrivateLogName = 'selector_log',

 
 

SQL_SELECTOR: TPT15105: Error 13 in finalizing the table schema definition - response (7) by ericsun2

$
0
0

Does UTF8 change the byte size in SCHEMA definition?

USING CHARACTER SET UTF8
DEFINE JOB EXPORT_DELIMITED_FILE
DESCRIPTION 'Export rows from a Teradata table to a delimited file'
(
DEFINE SCHEMA OUTPUT_FILE_SCHEMA
(
"NET_ID"   Varchar(39),
"NET_NAME" VARCHAR(900),
"NET_KEY"  Varchar(39)
);
DEFINE OPERATOR SQL_SELECTOR
TYPE SELECTOR
SCHEMA OUTPUT_FILE_SCHEMA
ATTRIBUTES

 

SQL_SELECTOR: TPT15105: Error 13 in finalizing the table schema definition - response (8) by feinholz

$
0
0

@ericsun2: the schema must match the data. Thus the Selector is retrieving 2 DECIMALs and a VARCHAR. Your schema does not match that.
And yes, if you are using a client session character set of UTF8, you must adjust the sizes of the VARCHAR fields in the schema definition to account for the extra data. You must multiply by 3.
 

Date Format In Teradata SQL Assistant - response (4) by ZQkal

$
0
0

How do you display last row (record) from a table.
Given this table
Name      create_tmp
AA          09-11-2009 01:02:00
AA           09-11-2011 01:02:00
AA           09-11-2012 01:12:09
AA           09-11-2013 01:02:59
BB           09-11-2010 01:02:00
BB          09-11-2011 10:02:10
CC          09-15-2012 01:02:00
 
Disired result
Name       Create_time
AA           09-11-2013 01:02:59
BB          09-11-2011 10:02:10
CC          09-15-2012 01:02:00
 
Thanks in advance.
 

Viewing all 27759 articles
Browse latest View live




Latest Images