﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server 2008 - General  / Pulling count of records from Teradata / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sun, 19 May 2013 14:59:06 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Pulling count of records from Teradata</title><link>http://www.sqlservercentral.com/Forums/Topic1397659-391-1.aspx</link><description>That worked perfectly Thanks Jason</description><pubDate>Wed, 19 Dec 2012 01:52:35 GMT</pubDate><dc:creator>Prassad Dabbada V R</dc:creator></item><item><title>RE: Pulling count of records from Teradata</title><link>http://www.sqlservercentral.com/Forums/Topic1397659-391-1.aspx</link><description>Thanks Jason,This could be good solution, I will work on this.Thanks for your solution.</description><pubDate>Tue, 18 Dec 2012 08:58:48 GMT</pubDate><dc:creator>Prassad Dabbada V R</dc:creator></item><item><title>RE: Pulling count of records from Teradata</title><link>http://www.sqlservercentral.com/Forums/Topic1397659-391-1.aspx</link><description>PS : just had one thought of inspiration [url]http://social.msdn.microsoft.com/forums/en-US/sqlintegrationservices/thread/1a91b594-23b0-47f5-940b-4ee067f82fe2[/url]Its using a different driver, but could still be a valid solution.</description><pubDate>Tue, 18 Dec 2012 07:47:27 GMT</pubDate><dc:creator>Jason-299789</dc:creator></item><item><title>RE: Pulling count of records from Teradata</title><link>http://www.sqlservercentral.com/Forums/Topic1397659-391-1.aspx</link><description>I'm going to have to bow out as I have limited knowledge of Teradata.It sounds very much like an ODBC/Teradata driver error, have you tried the TeraData forums to see if anyone has seen this issue before with SSIS.</description><pubDate>Tue, 18 Dec 2012 07:45:10 GMT</pubDate><dc:creator>Jason-299789</dc:creator></item><item><title>RE: Pulling count of records from Teradata</title><link>http://www.sqlservercentral.com/Forums/Topic1397659-391-1.aspx</link><description>This is working fine when the source connection is SQL Server or Oracle.When I change the datasource to Teradata it is throwing this error.</description><pubDate>Tue, 18 Dec 2012 07:40:36 GMT</pubDate><dc:creator>Prassad Dabbada V R</dc:creator></item><item><title>RE: Pulling count of records from Teradata</title><link>http://www.sqlservercentral.com/Forums/Topic1397659-391-1.aspx</link><description>I've just tested this and it shuold work with an INT32 datatype.How is your tast set up? is it set to use Single or Full row count?The Variable is set up in the Result set part of the SSIS SQL task, with the Result name set to 0 and Variable name pointing at the correct variable.</description><pubDate>Tue, 18 Dec 2012 06:59:02 GMT</pubDate><dc:creator>Jason-299789</dc:creator></item><item><title>RE: Pulling count of records from Teradata</title><link>http://www.sqlservercentral.com/Forums/Topic1397659-391-1.aspx</link><description>Yes correct</description><pubDate>Tue, 18 Dec 2012 06:38:44 GMT</pubDate><dc:creator>Prassad Dabbada V R</dc:creator></item><item><title>RE: Pulling count of records from Teradata</title><link>http://www.sqlservercentral.com/Forums/Topic1397659-391-1.aspx</link><description>Sorry I thought the variable you were using was in the SSIS package not an SQL variable.I take it the SQL Task you have just does SELECT COUNT(1) From myTableAfter that you have the SQL task set to use the result set and pass the value back to an SSIS variableis that correct?</description><pubDate>Tue, 18 Dec 2012 06:25:23 GMT</pubDate><dc:creator>Jason-299789</dc:creator></item><item><title>RE: Pulling count of records from Teradata</title><link>http://www.sqlservercentral.com/Forums/Topic1397659-391-1.aspx</link><description>I have changed the datatype of the variable to Int64, still it is giving same error messageThe actual count is 38044708, ans Int data type can handle this count.declare @i intset @i = 38044708print @i</description><pubDate>Tue, 18 Dec 2012 06:09:29 GMT</pubDate><dc:creator>Prassad Dabbada V R</dc:creator></item><item><title>RE: Pulling count of records from Teradata</title><link>http://www.sqlservercentral.com/Forums/Topic1397659-391-1.aspx</link><description>what scale is the int in SSIS, there are 5 maintypes INT16, INT32 and INT64 plus the Unsighed versions (UINT32 and UNIT64)An Int16 can only hold numbers upto +/- 32767, an INT32 can hold numbers upto +/-2^15.I would look to use the Int32 datatype in SSIS for this kind of thing unless you can guarantee that the row count will be less than 32000 rows of data.</description><pubDate>Tue, 18 Dec 2012 04:51:54 GMT</pubDate><dc:creator>Jason-299789</dc:creator></item><item><title>RE: Pulling count of records from Teradata</title><link>http://www.sqlservercentral.com/Forums/Topic1397659-391-1.aspx</link><description>Datatype is IntI am assigning value of below query to the variableselect count(1) from Mytable</description><pubDate>Tue, 18 Dec 2012 04:37:07 GMT</pubDate><dc:creator>Prassad Dabbada V R</dc:creator></item><item><title>RE: Pulling count of records from Teradata</title><link>http://www.sqlservercentral.com/Forums/Topic1397659-391-1.aspx</link><description>What Data type is the SSIS variable TeraDatacount, and how many rows are you pulling through.</description><pubDate>Tue, 18 Dec 2012 04:29:14 GMT</pubDate><dc:creator>Jason-299789</dc:creator></item><item><title>Pulling count of records from Teradata</title><link>http://www.sqlservercentral.com/Forums/Topic1397659-391-1.aspx</link><description>Hi,I am pulling count of records from a Teradata table.I have used Execute SQL Task in SSIS to get the count, based on the count I want to proceed further.while I am execuing the package I am getting below error[Execute SQL Task] Error: An error occurred while assigning a value to variable "TeradataCount": "Value does not fall within the expected range.".Note: I am using SSyou help is much appreciatedIS 2008 and ODBC Drivers for TeradataThanksPrasad</description><pubDate>Tue, 18 Dec 2012 03:38:18 GMT</pubDate><dc:creator>Prassad Dabbada V R</dc:creator></item></channel></rss>