I'm having an issue with getting the result from and ExecuteScalar with an Oracle Db. No matter what type (int, long, etc.) I tell it to return, it always throws an exception. I have tried this:
int count = (int) SQLCommand.ExecuteScalar();
Along with many other options but nothing seems to work. The query runs fine if I run it directly against the Db. I'm use to using a SQL Server Db and don't have much experience with Oracle back-end Db. Does anyone know what is going on here?!?! Thanks.
int count = (int) SQLCommand.ExecuteScalar();
Along with many other options but nothing seems to work. The query runs fine if I run it directly against the Db. I'm use to using a SQL Server Db and don't have much experience with Oracle back-end Db. Does anyone know what is going on here?!?! Thanks.