Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: Database: MS Access
 (0x80004005) (different from everyone else's probl
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

h3rb
Starting Member

17 Posts

Posted - 11 April 2001 :  20:47:12  Show Profile  Visit h3rb's Homepage  Send h3rb an ICQ Message
I know other people are having problems with this error. But their's involves inc_top.asp. Mine involves inc_function.asp. My forums were working perfectly up untill today. I have yet to touch anything with the server. And it just starts giving this error out. Members can access the main forums page that displays all the forums. But when they click on a forum they get this error. My main OS is linux. And When I try to access it using konquerer or netscape for linux I do not get this error. But when I switch to win98 and use IE or Netscape...I get these errors. Anyone have any ideas? I have checked all file permissions and they are setup properly.
Error Type:
Microsoft JET Database Engine (0x80004005)
Could not use ''; file already in use.
/snitz/inc_functions.asp, line 1760

h3rb


http://www.stny.com/gaming
STNY Road Runner Gaming

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 11 April 2001 :  20:53:00  Show Profile  Visit HuwR's Homepage
This is usually caused by more than one connection being open to the DB.
What is the code around line 1760 in your inc_functions ?

Go to Top of Page

h3rb
Starting Member

17 Posts

Posted - 11 April 2001 :  21:19:47  Show Profile  Visit h3rb's Homepage  Send h3rb an ICQ Message
Ok. I have done some more testing. First here is what my inc_functions looks like at around line 1760: (line 1760 is actually the one that says my_Conn2.Open strConnString"
<%
Response.End
end sub

function getNewMemberNumber()

dim my_Conn2

set my_Conn2 = Server.CreateObject("ADODB.Connection")
my_Conn2.Open strConnString

'## Forum_SQL
strSql = "SELECT " & strMemberTablePrefix & "MEMBERS.MEMBER_ID "
strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS "
strSql = strSql & " WHERE " & strDBNTSQLName & " = '" & strDBNTUserName & "'"
set rsGetMemberID = my_Conn2.Execute(strSql)
if rsGetMemberID.EOF or rsGetMemberID.BOF then
getNewMemberNumber = -1
exit function
end if
getNewMemberNumber = rsGetMemberID("MEMBER_ID")
my_Conn2.Close
Set my_Conn2 = nothing
end function

Now here is what I have been able to figure out.
It appears as If I am the only person allowed to view the forums. Only my member name. I was getting the same error as everyone else when I wasnt logged in. I had another person, who was having the problem everyone else is, log in with my user name and password. He can now view all the forums and their contents. And I tried the same as well...I tried 5 other people's logins and the same thing happens. So from what it looks like is that my login is "locking" everyone else from using the forums. How can this be? I read somewhere before that there is a .ldb file associated with the mdb that locks the database. I have search for a .ldb and found 2 on my server which are in no way related to snitz. Does this shed any more light on what could be my problem? Thx,

h3rb


http://www.stny.com/gaming
STNY Road Runner Gaming
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 11 April 2001 :  21:50:49  Show Profile  Visit HuwR's Homepage
Change the function to look like this....


function getNewMemberNumber()

dim my_Conn2

'## Forum_SQL
strSql = "SELECT " & strMemberTablePrefix & "MEMBERS.MEMBER_ID "
strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS "
strSql = strSql & " WHERE " & strDBNTSQLName & " = '" & strDBNTUserName & "'"
set rsGetMemberID = my_Conn.Execute(strSql)
if rsGetMemberID.EOF or rsGetMemberID.BOF then
getNewMemberNumber = -1
exit function
end if
getNewMemberNumber = rsGetMemberID("MEMBER_ID")
end function



Go to Top of Page

h3rb
Starting Member

17 Posts

Posted - 12 April 2001 :  00:40:50  Show Profile  Visit h3rb's Homepage  Send h3rb an ICQ Message
It worked. Thanks alot. =) No angry posters yellin at me now..heh.

h3rb

http://www.stny.com/gaming
STNY Road Runner Gaming
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.31 seconds. Powered By: Snitz Forums 2000 Version 3.4.07