473,395 Members | 2,467 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

HELP - can not drop table

Can anyone help, I'm trying to change some code on an asp page, this
line:

mySQL="drop table snorkTable"

does not seem to close the table. Net time the page is refreshed I'm
told that Table 'snorkTable' already exists.

I suspect my syntax is wrong - can anyone help?

Thanx

Dave
Jul 20 '05 #1
3 2287
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".
Jul 20 '05 #2
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.
Jul 20 '05 #3
Snorkerz wrote:
I could post the whole asp page if it would help?


Like I said, I don't know ASP. I just know that the delete syntax is
correct, so I don't think seeing the asp code would help. Unless someone
else knows something about it. Propably they know better in some
asp-related newsgroup.

But perhaps this helps:
http://groups.google.com/groups?selm...stk8%404ax.com
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

46
by: Kingdom | last post by:
In my data base I have a list of componet types e.g. type A - I have 8 off - type B I have 12 off etc. I'm using Set objRS = objDC.Execute("Select DISTINCT Component_Type FROM Parts_Table") ...
7
by: pkruti | last post by:
Below is a stored procedure i am working with and i am trying to drop the yesno_holding table if it exists but how do i add it back? Meaning i want it to drop if it exists but i want to add it back...
7
by: x muzuo | last post by:
Hi guys, I have got a prob of javascript form validation which just doesnt work with my ASP code. Can any one help me out please. Here is the code: {////<<head> <title>IIBO Submit Page</title>...
18
by: Bill Smith | last post by:
The initial row is inserted with the colPartNum column containing a valid LIKE pattern, such as (without the single quotes) 'AB%DE'. I want to update the column value with the results of a query...
7
by: teddysnips | last post by:
Table DDL below: The tables I have contain Timesheet information. Each row in the tblTSCollected table contains an entry for an employee into the timesheet system, specifically by scanning the...
1
by: vasilip | last post by:
I'm testing out db2 for a project I'm starting that requires proper xml support and I can't seem to get both xml and spatial data to work well in the same table. Once having created a table...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
0
by: RCapps | last post by:
When running the below SQL Query I keep getting the following error: Server: Msg 4924, Level 16, State 1, Line 1 ALTER TABLE DROP COLUMN failed because column 'ContractDef' does not exist in table...
11
by: tracy | last post by:
Hi, I really need help. I run this script and error message appeal as below: drop trigger log_errors_trig; drop trigger log_errors_trig ERROR at line 1: ORA04080: trigger 'LOG_ERRORS-TRIG'...
12
by: iahamed | last post by:
Hi Everyone, I got two parts of my advance search to work, I am running out of Logic to connect the third. My mind is in swing! Pleaseeeeeeeee Help me. I have 3 Fiels to search, the First two...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.