Go Back   CodingForums.com > :: Server side development > MySQL > Other Databases

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-10-2005, 11:11 PM   PM User | #1
CHAINLINK_2006
New Coder

 
Join Date: Apr 2005
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
CHAINLINK_2006 is an unknown quantity at this point
SQL Alter Table Error

** Reposted from MySQL Section**

Hey, I am having some problems with the Alter Table Function. The Error is as follows:

Microsoft JET Database Engine error '80040e14'

The database engine could not lock table 'tblFolders' because it is already in use by another person or process.

/upload.asp, line 106

The Code for line 106 is in bold
Code:
...
rsNewFile2.Open strSQL, adoCon
strFileID = rsNewFile2("FileID")
Set rsNewFile3 = Server.CreateObject("ADODB.Recordset")
strSQL = "ALTER TABLE tblFolders ADD [" & strFileID & "] varchar(10)"
Set rsNewFile3 = adoCon.Execute(strSQL)
...
This works once then when I try it a second time, it fails and gives me the error above. I can include more code if needed.
CHAINLINK_2006 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:48 AM.


Advertisement
Log in to turn off these ads.