B
Beemer Biker
I put in a database operation in a try .. catch .. but I continue to get a
server error.
try
{
Sql_psg.SelectCommand = "DROP TABLE \"##TEMP\"";
}
catch
{
}
The above runs fine if ##TEMP exists. If not (the table does not exists)
then I get a server error.
If running VS2005 in debug and I have [x] checked for exceptions, then the
error is thrown up in the debugger. After clicking on "continue" I still
get the server error. So I get a server error both in the debugger and in
the published web page.
Is this functionality (continueing on after the "catch") a problem in the
odbc postgresql drivers? There is no DROP TABLE IF EXISTS in postgresql,
they dont even have an "IF command" in their sql syntax, so I was attempting
to use the try..catch to ignore errors.
I would have thought the code would continue on after the catch, but I guess
not???
...thanks in advance..
server error.
try
{
Sql_psg.SelectCommand = "DROP TABLE \"##TEMP\"";
}
catch
{
}
The above runs fine if ##TEMP exists. If not (the table does not exists)
then I get a server error.
If running VS2005 in debug and I have [x] checked for exceptions, then the
error is thrown up in the debugger. After clicking on "continue" I still
get the server error. So I get a server error both in the debugger and in
the published web page.
Is this functionality (continueing on after the "catch") a problem in the
odbc postgresql drivers? There is no DROP TABLE IF EXISTS in postgresql,
they dont even have an "IF command" in their sql syntax, so I was attempting
to use the try..catch to ignore errors.
I would have thought the code would continue on after the catch, but I guess
not???
...thanks in advance..