I’ve been asked to migrate my application from using a SQL Server database to an Oracle database.
I’m getting this error:
ORA-00942: table or view does not exist
I could be wrong, but I believe this is an issue with my statement. Is there a specific format I would need to follow connected to an oracle database over a SQL Server?
I will include my query statement:
namespace project1
{
public class dbqry
{
private static string qry = "";
public static DataTable gProjectCIS(string BSA_CD)
{
qry = string.Format(@"SELECT *
FROM CIS_TRANS
WHERE BSA_CD like '%{0}%'", BSA_CD);
return dbcon.GetDataTable(qry, "ProjectCISConnectionString");
}
public static DataTable gProjectCIS()
{
qry = @"SELECT *
FROM CIS_TRANS";
return dbcon.GetDataTable(qry, "ProjectCISConnectionString");
}
Thanks!
Hello you must prefix your table with schema
And Fix Package on stored procedure.
You change declaration and body, compile your package in the first time before use