Hi Everyone,
I'm getting the above error message for the following code:
DataSet lds_Data = new DataSet();
OracleConnection lo_Conn = new OracleConnection("Data
Source=xxxx; User ID=xxxx; Password=xxxx");
string ls_SQL = "";
// Build the SQL Statement
ls_SQL = "SELECT * FROM CAT WHERE TABLE_TYPE
= v_TType";
try
{
OracleDataAdapter lo_Adapt = new OracleDataAdapter(
ls_SQL, lo_Conn );
lo_Adapt.SelectCommand.Parameters.Add( "v_TType",
OracleType.VarChar, 255, "TABLE" );
// Fill the dataset
lo_Adapt.Fill( lds_Data );
}
catch( Exception x )
{
Console.WriteLine( x.Message );
}
Could anyone tell me what I'm doing wrong.
Thanks in advance
Andy (LokiDBA)
I'm getting the above error message for the following code:
DataSet lds_Data = new DataSet();
OracleConnection lo_Conn = new OracleConnection("Data
Source=xxxx; User ID=xxxx; Password=xxxx");
string ls_SQL = "";
// Build the SQL Statement
ls_SQL = "SELECT * FROM CAT WHERE TABLE_TYPE
= v_TType";
try
{
OracleDataAdapter lo_Adapt = new OracleDataAdapter(
ls_SQL, lo_Conn );
lo_Adapt.SelectCommand.Parameters.Add( "v_TType",
OracleType.VarChar, 255, "TABLE" );
// Fill the dataset
lo_Adapt.Fill( lds_Data );
}
catch( Exception x )
{
Console.WriteLine( x.Message );
}
Could anyone tell me what I'm doing wrong.
Thanks in advance
Andy (LokiDBA)