Passing NULL values to a TERADATA sp, using Teradata .NET provider 1.0
Teradata Teradata Discussion Forums Teradata.com Discussion Forum
Visit Teradata.com
Home       Guidelines    Member List
Welcome Guest ( Login | Register )
        


This online forum is for user-to-user discussions of Teradata products, and is not an official customer support channel for Teradata. If you require direct assistance, please contact Teradata support.


Passing NULL values to a TERADATA sp, using... Expand / Collapse
Author
Message
Posted 2/13/2007 5:52:37 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 2/13/2007 5:51:00 AM
Posts: 1, Visits: 1
Passing NULL values to a TERADATA sp, using Teradata .NET provider


Teradata provides Teradata .NET provider driver for connecting to Teradata using .NET 2.0,
I was initally using ODBC driver, but for calling SP using CommandType.Text or CommandType.StoredProcedure, both do not return any value, so we switched to Teradata provider provided by NCR corporation . ( Can ODBC driver be used for retrieving the SP return value ??? )

But I was a facing a problem related to passing NULL values to the SP.
The documentation provide to use DBNull.Value, but this works perfectly well for DATE and TIME type parameters but not for STRING type parameters, where the system gives the exception NULLReferenceException.
This SP works pefectly well with NULL values by using NULL values in Teradata SQL Assistant.

I have even tried using parameter values as NULL,'NULL',"NULL" but all fail for one or the other parameter types, sometimeg giving Invalid DATE and time and for string types.. not accepting it as a NULL but instead as a blank space.

If I need to be more elaborate, please do tell me..
I can paste my code as well..

Help needed is urgent.

Thank
Post #6541
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.


All times are GMT -5:00, Time now is 6:06pm

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.031. 10 queries. Compression Disabled.