Quantcast
Channel: Teradata Downloads - Connectivity
Viewing all 445 articles
Browse latest View live

Teradata jdbc driver upgrade from 13.00.00.07 to 15.00.00.15

$
0
0

I am using Teradata jdbc driver 13.00.00.07 to connect to Teradata data base from my java application. Couple of days back I got the following issue 'TeraResultSet:getTimestamp function failed'. After reading through some blogs I understood that 'Teradata JDBC Driver version 13.00.00.07 and earlier versions of the Teradata JDBC Driver do not support the implicit data type conversion' and the driver should be upgraded to 13.00.00.16. After checking the tera data website I found that 15.00.00.15 is the latest. I would like to know a couple of things.
1) What are the major differences between these two versions?
2) Is the driver version 15.00.00.15 backward compatible with 13.00.00.07?
3) Should I do any java level code change for making the version changes?

Forums: 

Cannot convert from Db.DateTimeOffset to Td.TimeStampWithZone

$
0
0

I am attempting to execute a parametrized non-query SQL command using TdCommand.ExecuteNonQuery().  The parameter in question is DbType.DateTimeOffset and TdType.TimestampWithZone; the parameter value was generated using DateTime.Now and appears to be completely defined (as verified via the Visual Studio debugger).  When I reach my ExecuteNonQuery() statement, I receive a System.InvalidCastException with message "Cannot convert to Timestamp with Time Zone".  The command text, for what it's worth, is simply: "INSERT INTO DateTimeOffsetTable (DateTimeOffsetVal) VALUES(?);".  
The Teradata Configuring Parameters and Parameter Data Types page suggests that DateTimeOffset should map to TimeStampWithZone; however it also indicates that inference from DateTime2 is not supported.  Not sure if it matters, but the Date/Time data types description provided by Microsoft (http://msdn.microsoft.com/en-us/library/bb675168(v=vs.110).aspx), however, says "The datetimeoffset data type has all the features of datetime2 with an additional time zone offset." Would this affect the conversion?  If not, any suggestions how to remedy the issue?

Forums: 

Error inserting null value into nullable field using TdCommand

$
0
0

I have the following unit test which is failing due to a TdException with the message "[Teradata Database] [2689] Field is null for column defined as NOT NULL."

[TestMethod]
        public void CanInsertNullStringParameter()
        {
            using (DbConnection connection = db.CreateConnection())
            {
                connection.Open();
                using (DbTransaction transaction = connection.BeginTransaction())
                {
                    string sqlString = "insert into TempCustomers (CustomerID, CompanyName, ContactName) Values (?, ?, ?);"
                    DbCommand insert = db.GetSqlStringCommand(sqlString);
                    db.AddInParameter(insert, "CustomerID", DbType.Int32, 1);
                    db.AddInParameter(insert, "CompanyName", DbType.String, "test");
                    db.AddInParameter(insert, "ContactName", DbType.String, null);

                    db.ExecuteNonQuery(insert, transaction);
                    transaction.Rollback();
                }
            }
        }

 

The SQL used to create the table is as follows ... I have confirmed via Teradata SQL Assistant that column ContactName is indeed nullable, and that I can insert a null value via an insert statement applied directly in SQL Assistant.

CREATE TABLE TempCustomers (CustomerId VARCHAR(5) NOT NULL, CompanyName VARCHAR(128) NOT NULL, ContactName VARCHAR(128) NULL);

 

Internally, my C# code gets down to a TdCommand.ExecuteNonQuery(), which is where the exception gets thrown.  The command text is the SQL below. I have confirmed that the third parameter has value DBNull.Value.

insert into TempCustomers (CustomerID, CompanyName, ContactName) Values (?, ?, ?)

 

Can someone advise why I'm receiving this error?

 

Forums: 

SQLPrepare error when NoScan enabled

$
0
0

Hi guys.
I have some troubles with ODBC driver. I'm facing error HY092 Invalid attribute when try to run SQLPrepare function.
My connection sting to Teradata: DRIVER={Teradata};DBCName=192.***;uid="dbc";pwd=********;QUIETMODE=YES;LoginTimeout=210;UseNativeLOBSupport=Yes;NoScan=Yes;
The statement which cause the error: "INSERT INTO "AUTOTEST"."D2TD_MERGE_CHARS" (S_BIGINT,S_CHAR,S_VARCHAR,S_LONG_VARCHAR) VALUES  (?            ,?             ,?              ,?               )"
When I remove NoScan flag everything is OK.
So can SQLPrepare fucntion work with NoScan flag? Maybe I need to add something into connection string?

Forums: 

Connecting to Teradata using Python

$
0
0

Hi Guys,
 
I am strugling to connnect teradata usning python. I have a user ID and password in text file and i need to read the test file to connect to teradata.. could you please help me with theb syntax if anyone has already done this

Tags: 
Forums: 

Unable to connect to TD15 SQL Assistant

$
0
0

I got the TD 15 installed using '

Teradata Tools and Utilities - Windows Installation Package'
But i am getting the below error while connecting to SQL Assistant
'Unknown Error Occured in Terasso Libarary'
Kindly Advice.
Regards
Sreehari

Forums: 

Sending dataset(multiple rows and multiple columns ) from .net to teradata

$
0
0

Hi Experts ,
Is it possible to send multiple rows ( a table ) from .net environment to teradata environment .
I think it should be possible but as I am completely at DB side I have no idea of connections and .NET to teradata bridge .
Kindly help . Thanks in advance .

Forums: 

Sending dataset(multiple rows and multiple columns ) from .net to teradata

$
0
0

Hi Experts ,
Is it possible to send multiple rows ( a table ) from .net environment to teradata environment .
I think it should be possible but as I am completely at DB side I have no idea of connections and .NET to teradata bridge .
Kindly help . Thanks in advance .

Forums: 

Handling Large volume of data thru JDBC connection

$
0
0

Hi,
We are evaluating options to Extract/insert large volume of data (Millions of rows) from Teradata and process within a Java application.
1) We can use JDBC to connect to Teradata from Java application and Invoke JDBC Fastload/JDBC FastExport to load/export data. Is there any limitation on the volume of data while using JDBC. I have seen information that entire resultset won't be kept in Memory in case of fastexport and for fastload also, we can send batches of data to Teradata multiple times and issue final commit to copy the data into Target tables. So in both cases huge volume is not issue. Is this correct?
we will also be running multiple instances of this Java application and they connect to Teradata to extract/load data. Is there any limit on how many JDBC connections we can have at any point of time?
 
Thanks
Sundar
 
 

Forums: 

ToString error in SQL Server link to Teradata

$
0
0

Hello,
I am trying to query some Teradata data in SQL Server. When doing so, I get an error, "Cannot find either column "XDate" or the user-defined function or aggregate "XDate.ToString", or the name is ambiguous.
Now, I know the column exists and I can pull the date just fine in SQL Assistant. What do I need to do to be able to pull it in SQL Server?
Thanks in advance!
 
SELECT     Order, XDate FROM         OPENQUERY(TERAPRODLINK,
                      'select Order,min(XDate)  as XDate FROM table1 ')
 

Forums: 

ODBC Call Failed

$
0
0

I am trying to run my query after my linked table in Access 2007 is done and all is fine. I get an ODBC call failed periodically. It normally happens during business hours. On the weekends, early morning, it is fine. Others on my team sometimes get it and sometimes they don't. Others on my team can run the query in like 2 minutes and others 45, then others half an hour and then others get the ODBC call failed. Is this because there is a lot of traffic on the server we are connecting to and IP, VPN issues?

Forums: 

How to make DBS running? all VPROCs and PDE nodes fully online

$
0
0

Hi all,
I installed Teradata express 13.0 (not vmware) on Win7.
I run TD Service Control - it ends up as: "PDE state is RUN/READY".
I executed sysinit and after restart my configuration is 2 AMPs and 1 PE, all are Online:
(under vprocmanager: STATUS NOTONLINE

All DBS vprocs are fully online.

All PDE nodes are fully online.

)

I also tried:
restart tpa "To bring DBS running"

 

And:

net start recond

 

Ctl flag for Start DBS is ON.

Firewall and antyvirus is off.

 

Seems like all my Teradata services are running.. (seen under net start)

But somehow I cannot start DBS. Do you have any idea what else I should do?

 

Please help me as I am out of more ideas... :(

 

Best regards,

Aneta
 

 

 

 

Forums: 

SQL Assistant and ORA-12154 on 64-bit Windows platforms (but not on 32-bit)

$
0
0

Since it appears SQL Assistant is still available only in 32-bit version (TD 14/15 clients), it attempts to connect to Oracle's 32-bit ODBC.
On 32-bit Windows platforms everything is peachy.
On 64-bit platforms, however, ORA-12154 errors "Can not resolve connect identifiers" is experienced. Manipulations with ORACLE_HOME, TNS_ADMIN, PATH so far did not yield any results. It almost appears that the SQL Assistant attempts to read from a TNS file only it knows where to find.
I have an Oracle 11g client, and - what appears to have been added by the Teradata 15 client - an Oracle 10g client.
Setting up Oracle 10g environment as primary works in all ODBC admins (including the ODBC config from inside the SQL Assistant), but once you actually try to connect the issue in the subject persists.
Any idea how to get rid of this?

Forums: 

Setting up JDBC Driver for Teradata Database on Vmware and Cognos

$
0
0

Hi,
 
How do i set-up the JDBC drivers on Cognos and Teradata database? I've downloaded the jdbc drivers but i don't know how to set them up in both Cognos and Teradata database. Can anyone help me figure this out? Thanks :) 

Forums: 

Stored Procedure

$
0
0

Hi everyone,
 
I'm pretty green at this field but I have to create a table from a select statement i've made and it has to be done though a
stored procedure.
 
I'm wondering if someone nows any good ToDo-guides I can use. I have no experience so far regarding what the key stones are in
a stored procedure when creating a table.
 
Thanks in advance!
 
Emil

Forums: 

odbc driver trace on windows.

$
0
0

Dears,
 
I could enable the driver trace on Linux. (modify the odbc.ini file.)
But for windows, do we have the same functionality? I did not see it. Enable DSN Tracing is not the option in windows.
I need to see SQL and function calls to the driver from application. Any idea?
 
Thanks,
Ricky

Forums: 

Teradata connectivity using Entity framework 6.0

$
0
0

Hi, 
I am very new to teradata. Please help me. 
Is it possible to connect to teradata using Entity framework 6.0. 
If so, is there any sample application or source code(some kind of tutorial) for reference.
 
Thanks
Previn S

Forums: 

Question about parameter markers and .net

$
0
0

I am trying to insert data into a table using a .Net DataAdapter.  The following simplified example shows my problem (hopefully)
 
The DataTable has 3 columns
Id
FirstName
LastName
Now the insert command sql for the DataAdapter is the following (and works in Sql Assistant with values)
insert into mytable select ?, ?, ? where not exists (select 1 from mytable where Id = ?)
 
Now because named parameters aren't supported I have more parameter markers than columns and I can't figure out how to configure the DbCommand parameter collection to support this scenario.
 
Do I have to add a fourth column to the datatable that is a duplicate of the existing Id column?  Or is there another way.
 
 

Forums: 

[PerformancePoint2010]Connectivity with teradata

$
0
0

Hi,
I try to connect PerformancePoint 2010  to Teradata. I did'nt find how to connect it. 
I already try this : 
- To connect with standard connexion
- To connect with connexion string like this "Provider=Teradata;Database=DataBase_Name;Data Source=Data_Source;USER ID=User_Name;Password=Password;"
The both doesn't work anymore.
If someone have an idea, i will be grateful :)
Thanks in advance
Etienne

Forums: 

JDBC FastLoad - error 3737

$
0
0

Hi,
I am using JDBC FastLoad to transfer data between different teradata environments.
I have been hitting an error message:

java.sql.SQLException: [Teradata Database] [TeraJDBC 15.00.00.20] [Error 3737] [SQLState 42000] Name requires more than 30 bytes in LATIN internal form.

This is for a table with DDL such as (and the source and target tables are identical):

CREATE SET TABLE databaseX.tableX
     (
      a_very_very_long_column_length CHAR(1) 
      )

From looking in dbc.QryLog, the error is caused by the JDBC driver constructing a statement such as the following:

USING "F_a_very_very_long_column_length" (VARCHAR(1)) INSERT INTO "databaseX"."tableX" ( "a_very_very_long_column_length" ) VALUES ( :"F_a_very_very_long_column_length" )

i.e. it is prefixing the column name with "F_", and thereby exceeding the 30 character limit....
I'm interested to know if anybody has encounted this before, and if there is any way around it.  It seems to imply that there is a column length limit for JDBC FastLoads of 28 characters, is that right?  I can't find this documented.
Non-FastLoad inserts work fine, by the way.
 
 

Forums: 
Viewing all 445 articles
Browse latest View live


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