Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
site wont link to database
Old 03-21-2007, 06:50 AM site wont link to database
oohmygod831's Avatar
Average Talker

Posts: 29
Trades: 0
hi, im creating a new website busing dw8 but hit a snag, the site is basic asp linked to a access db, when i try to preview the site i get this error

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database engine cannot open the file '(unknown)'. It is already opened exclusively by another user, or you need permission to view its data.
/photo gallery/index.asp, line 8

and line 8 refers to the database connection

Set rsPhotos = Server.CreateObject("ADODB.Recordset")
rsPhotos.ActiveConnection = MM_conGallery_STRING
rsPhotos.Source = "SELECT * FROM Images"
rsPhotos.CursorType = 0
rsPhotos.CursorLocation = 2
rsPhotos.LockType = 1
rsPhotos.Open()

i thought it was a permissions problem but my db and all files have the correct permissions set. The only difference between this site and others ive done is this is my first using dw8, i used dw mx in the past.
oohmygod831 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-21-2007, 07:30 AM Re: site wont link to database
oohmygod831's Avatar
Average Talker

Posts: 29
Trades: 0
could this be the problem, when i have created my connection to the database i have noticed that another file has been created with the same name as my database but with the extension ldb and there is a small padlock attached to the db icon? can i get rid of this?
oohmygod831 is offline
Reply With Quote
View Public Profile
 
Old 03-21-2007, 08:11 AM Re: site wont link to database
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
the ldb file is the Access lockfile. If you are sure no one is accessing the DB it can be deleted safely.

It should be deleted automatically after the asp connection closes but sometimes an aborted update/delete query can leave the file there and the DB locked.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-21-2007, 05:41 PM Re: site wont link to database
oohmygod831's Avatar
Average Talker

Posts: 29
Trades: 0
cheers Chris but ive since learn t that my iss is corrupted somehow so ive decided to install apache and learn php from scratch rather than letting dreamweaver produce the code, thanks again
oohmygod831 is offline
Reply With Quote
View Public Profile
 
Old 03-21-2007, 05:46 PM Re: site wont link to database
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
Um, why not continue on with asp instead of letting dreamweaver write your code?

Also, to answer the original question, we need the one piece of information that's not provided, the value of MM_conGallery_STRING.
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 03-21-2007, 08:53 PM Re: site wont link to database
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
Close the Images table inside of Access (I'm presuming you're using Access). I see that error all the time on my localhost, and it's always because I have the table open in either design/datasheet view that's being referenced.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 03-23-2007, 06:02 PM Re: site wont link to database
oohmygod831's Avatar
Average Talker

Posts: 29
Trades: 0
i didnt have access open at all and the only other program running was dreamweaver so i dont know why it says another program is using the database.
oohmygod831 is offline
Reply With Quote
View Public Profile
 
Old 03-23-2007, 06:09 PM Re: site wont link to database
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
Probably Dreamweaver was connected to it, in order to provide whichever features it has relating to databases.
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to site wont link to database
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.26515 seconds with 12 queries