调用Oracle存储过程问题
//判断连接是否关闭,关闭则打开
if(con.State==System.Data.ConnectionState.Closed)
con.Open();
int count=0;
OdbcCommand command=new OdbcCommand();
command.Connection=con;
try
{
string sql="exec longoil.test";
command.CommandType=System.Data.CommandType.StoredProcedure;
command.CommandText=sql;
count=command.ExecuteNonQuery();
con.Close();
}
catch(Exception e)
{
if(con!=null)
con.Close();
throw e;
}
运行这段程序时抱ERROR [42000] [Oracle][ODBC]Syntax error or access violation.
我用的Oracle9i,怎样才能运行存储过程,这个存储过程既没有输入,也没有输出