Wrox Programmer Forums
|
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 19th, 2006, 02:47 PM
Authorized User
 
Join Date: Dec 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error message help

Everytime I try to open a connection to my database I get this error message:

The database has been placed in a state by user 'Admin' on machine 'PAD319205' that prevents it from being opened or locked.

Could someone provide an explaination for what it means and what I can do to fix the problem? Thanks.
 
Old June 20th, 2006, 01:03 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Is that the number of the machine you are sitting at?
Is this like an Access database? Oracle? SQLServer?
What is the statement that generates the error?
 
Old June 20th, 2006, 02:09 PM
Authorized User
 
Join Date: Dec 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am using an Access database on a network. I'm not sure what the PAD319205' is and can only assume that is the designation for the machine the database resides on. The following is the code I am using to make the connection and I copied it from another source. It is possible I neglected to alter the code for the database I am using, but will need guidance in figuring this one out. Thanks.

    Dim cn As ADODB.Connection
    Dim rs As ADODB.Recordset

    Set rs = New ADODB.Recordset
    Set cn = New ADODB.Connection
    SQL = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strPathToDB & ";Persist Security Info=false"

    cn.Open (SQL), , , 0





Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the error message for a 500 server error? chobo2 C# 2005 1 May 4th, 2008 03:11 AM
Where does the error message go? Wei Wang BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 March 13th, 2006 02:03 PM
Error Message alannoble26 Excel VBA 4 November 25th, 2005 11:20 AM
error message. Tasha Access VBA 2 August 11th, 2004 11:07 PM
Help with Error message mariakovacs Classic ASP Databases 3 October 10th, 2003 03:59 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.