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

Logon credentials in BTEQ script not working - response (2) by DZanke

Thanks for the tip. I did try passing the password in batch mode using various combinations of quotes/no quotes on both the password and userid. It turns out that I loacked the account during these...

View Article


Select Failed 2666 Invalid date supplied - forum topic by shaves

SELECT'D' || A.ZARF_ECARS_1 || A.legacy_branch_rented as Transmittal_Number, A.ADDRESS1 as Address, A.CITY as CITY1, A.STATE as STATE1, A.POSTAL as ZIP, A.ITEM as Debtor_Reference, cast(A.due_DT as...

View Article


cast date between 2 different data types - response (2) by shaves

select cast (cast (jsdate as Char (8)) as date format 'yyyymmdd') as Date_Col, jsdate, jsn, junit, jmyear, jmake, jmodel, jseries, jbuyid from veh_mgmt_as400.cs087p where jfinowngp = 'p1' and jfinownbr...

View Article

Help with stored procedure metadat - forum topic by sateeshgbn

I want to extract meta data for stored procedure from dbc tables something like this.  select a.name AS [ParameterName],  a.parameter_id AS [ParameterID],  TYPE_NAME(a.user_type_id) AS...

View Article

Disable TD2 logon but allow LDAP for certain users - response (5) by Fred

If they don't know the password, they can't use TD2 authentication. The issue is that someone could potentially authenticate via LDAP, then change their TD2 password, and they subsequently would be...

View Article


td wallet for jdbc - response (4) by tomnolan

It is still the case that, at the present time, there is no interoperability between Teradata Wallet and the Teradata JDBC Driver.  We are in the planning stage for a new Teradata JDBC Driver feature,...

View Article

DECODE Does Not Trap Divide by Zero Error - forum topic by ssi112

I've been beating my head against Teradata's wall this week and cannot figure out why this isn't working. We use this code in Oracle and recently ported data over to Teradata. The CASE and DECODES are...

View Article

Block Level Compression (BLC) - forum topic by caitken4me

Working with a customer who is moving from TD13.10 to TD15 and also moving from an appliance 2650 to a 2800. The data will be moved via NPARC and all tables will land on the new system in compressed...

View Article


Select Failed 2666 Invalid date supplied - response (1) by dins2k2

Hi Shaves,  Hope this helps.  cast(A.asof_DT as date) between cast(cast( '2016-01-01 00:00:00' as timestamp(0)) as date) and cast(cast( '2016-01-31 00:00:00' as timestamp(0)) as date)  Thanks, Dinesh

View Article


Column with keywords found in comments field - forum topic by harrytuttle

At work I've been given a task that I'm told is "simple and straightforward", but I'm having difficulty with: I have a view that contains 4 columns, a PK, FK, comments, and column #4. My manager is...

View Article

Create Table Using SELECT Statement With Default User and Date - forum topic...

I'm trying to create a table, using a SELECT state, but that also has the LOAD_USER and LOAD_DATE with defaults to CURRENT_USER and CURRENT_TIMESTAMP.  If I was creating the table, then adding the...

View Article

DECODE Does Not Trap Divide by Zero Error - response (1) by dins2k2

Steve,  DECODE is very complex. You can convert DECODE into CASE statements. For capturing division by zero, you can use NULLIF or NULLIFZERO functions.  Thanks, Dinesh

View Article

DECODE Does Not Trap Divide by Zero Error - response (2) by dnoeth

DECODE is not built-in, but a UDF. It's probably not following the same rules as a CASE, i.e. seems to calculate everything before deciding which value to return. The only workaround might be adding...

View Article


Select Failed 2666 Invalid date supplied - response (2) by dnoeth

There's no need for CASTs, better use DATE/TIMESTAMP literals: and cast(A.asof_DT as date) between DATE '2016-01-01' AND DATE '2016-01-31'or simplified to: and A.asof_DT between TIMESTAMP '2016-01-01...

View Article

Create Table Using SELECT Statement With Default User and Date - response (1)...

You can add constraints to the CREATE like CREATE TABLE TABLE_TEST (NAME, LOAD_USER CASESPECIFIC DEFAULT USER, LOAD_DATE DEFAULT CURRENT_TIMESTAMP(6) ) AS (SELECT 'Mickey Mouse' AS NAME...

View Article


No menu bar in SQL Assistant 14.01 - response (3) by Fred

From a command prompt: del "%APPDATA%\Teradata\SQL Assistant\Toolbars.config"  Next time you run SQL Assistant, it will re-create the file with default settings.

View Article

Access Right Abbreviations - response (7) by climbamtn

How about the following: OA OR

View Article


Access Right Abbreviations - response (8) by dins2k2

Hi,  OA = OVERRIDE DUMP CONSTRAINT OR= OVERRIDE RESTORE CONSTRAINT  Below link has all the privilege codes....

View Article

Access Right Abbreviations - response (9) by Fred

See the Appendix in the Data Dictionary Manual. OA = Override Dump OR= Override Restore

View Article

RDBMS error 3813: The positional assignment list has too many values - forum...

Hello, I'm building a TPT script to load a flat file to a table. I'm running it from the command line: tbuild -f c:\some_dir\tpt_load.txt My Teradata platform system is: VERSION    14.00.07.15 RELEASE...

View Article
Browsing all 27759 articles
Browse latest View live


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