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

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Code : -2147467259
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Mescalino
Starting Member

10 Posts

Posted - 13 March 2001 :  09:57:21  Show Profile  Visit Mescalino's Homepage  Send Mescalino an ICQ Message
I get the following error:

There has been an error !!

The database could not be opened !!
Check your config.asp file and set the
strConnString so it points to the database.
Also check if strDBType is set to the right databasetype.



Code : -2147467259

This is a part from my config.asp :

'#################################################################################
'## SELECT YOUR DATABASE TYPE AND CONNECTION TYPE (access, sqlserver or mysql)
'#################################################################################
'strDBType = "sqlserver"
strDBType = "access"
'strDBType = "mysql"

'## Make sure to uncomment one of the strConnString lines!
'strConnString = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=c:\inetpub\dbroot\snitz_forums_2000.mdb" '## MS Access 97
strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("/tools/snitz_forums_2000.mdb") '## MS Access 2000 using virtual path
'strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\forum\tools\snitz_forum.mdb;" '## MS Access 2000
'strConnString = "driver={SQL Server};server=SERVER_NAME;uid=SQL_USER;pwd=PASSWORD;database=DATABASE_NAME" '## MS SQL Server 7
'strConnString = "driver=MySQL;server=SERVER_NAME;uid=MYSQL_USER;pwd=PARRWORD;database=DATABASE_NAME" '## MySQL

strTablePrefix = "FORUM_"
strMemberTablePrefix = "FORUM_"

The database is located in the subdir /tools

Does anybody know what i'm doing wrong ?

Don't abuse marijuana... smoke it gently and carefully.

davemaxwell
Access 2000 Support Moderator

USA
3020 Posts

Posted - 13 March 2001 :  10:26:11  Show Profile  Visit davemaxwell's Homepage  Send davemaxwell an AOL message  Send davemaxwell an ICQ Message  Send davemaxwell a Yahoo! Message
Is tools a subdirectory of the forum or of the root. If of the forum, remove the first / from the mappath...

Dave Maxwell
--------------
Proud to be a "World Class" Knucklehead
Go to Top of Page

Mescalino
Starting Member

10 Posts

Posted - 13 March 2001 :  11:20:29  Show Profile  Visit Mescalino's Homepage  Send Mescalino an ICQ Message
Thanx, this solved the problem.

Now the access denied error. :)


Don't abuse marijuana... smoke it gently and carefully.
Go to Top of Page

davemaxwell
Access 2000 Support Moderator

USA
3020 Posts

Posted - 13 March 2001 :  12:21:19  Show Profile  Visit davemaxwell's Homepage  Send davemaxwell an AOL message  Send davemaxwell an ICQ Message  Send davemaxwell a Yahoo! Message
Give the directory read/write permissions for IUSR_<MachineName> If your host gave you a control panel, you should be able to do it there, otherwise contact them directly and have them do it for you....

Dave Maxwell
--------------
Proud to be a "World Class" Knucklehead
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.23 seconds. Powered By: Snitz Forums 2000 Version 3.4.07