Aggro <sp**********@yahoo.com> wrote in message news:<f7***********@read3.inet.fi>...
Snorkerz wrote:
does not seem to close the table. Net time the page is refreshed I'm
told that Table 'snorkTable' already exists.
"drop table tablename" will destroy the table, not close it. I don't
know anything about ASP, but the syntax is correct, assuming you have a
database selected.
Do you have any particular reason why you want to destroy the table
every time page loads? Isn't it enough if you just remove all rows from
it? "delete from tablename".
I'm going with 'Drop Table' because that's what the original
programers script required. But it doesn't seem to actually do it, as
I said in the OP, the page says "Table 'snorkTable' already exists".
I could post the whole asp page if it would help?
The table snorkTable is created earlier in the page to hold details of
some random settings and I've changed the name throughout the script
to ensure it doesn't clash with any other tables that might be opened
by other scripts.