473,326 Members | 2,108 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Unrecognized database format

I'm using Ado.net in an asp.net project with an Access backend.

Whenever I try to do a simple Select or Update, I inevitably see the error
"Unrecognized database format". I'm using Access 2000.

Here is some code for an aspx page:

Sub Page_Load(Source As Object, E As EventArgs)
Dim strConnection As String = "Provider=Microsoft.Jet.OleDb.4.0;" & _
"data source=D:\Data\Codelib\codelib.mdb;"
Dim objConnection As New OleDbConnection(strConnection)
Dim strSQL As String = "SELECT CodeID, Title from tblCode;"
Dim objCommand As New OleDbCommand(strSQL, objConnection)
objConnection.Open()
Repeater1.DataSource = objCommand.ExecuteReader()
Repeater1.DataBind()
objConnection.Close()
End Sub

So when I run this a few times, it works fine. Then I get that error message
and the code no longer works. The error occurs on line

objConnection.Open()

Can somebody please tell me what I must to to alleviate this?

Thanks for any pointers.

Tim

Nov 18 '05 #1
7 2969
Are you sure you are using an Access 2000 database? I bet the file is
really an Access97 version. Then if the server has MDAC 2.6 or higher, I
believe, you will get this kind of error.

In the past, I had some sites that used Access97 databases and the web host
upgraded to a higher version of MDAC than 2.5 (I think it was) resulting in
that sort of message. When I updated the databases to Access version 2000,
the error message disappeared.
"timmso" <ti**************@Yahoo.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I'm using Ado.net in an asp.net project with an Access backend.

Whenever I try to do a simple Select or Update, I inevitably see the error
"Unrecognized database format". I'm using Access 2000.

Here is some code for an aspx page:

Sub Page_Load(Source As Object, E As EventArgs)
Dim strConnection As String = "Provider=Microsoft.Jet.OleDb.4.0;" & _
"data source=D:\Data\Codelib\codelib.mdb;"
Dim objConnection As New OleDbConnection(strConnection)
Dim strSQL As String = "SELECT CodeID, Title from tblCode;"
Dim objCommand As New OleDbCommand(strSQL, objConnection)
objConnection.Open()
Repeater1.DataSource = objCommand.ExecuteReader()
Repeater1.DataBind()
objConnection.Close()
End Sub

So when I run this a few times, it works fine. Then I get that error message and the code no longer works. The error occurs on line

objConnection.Open()

Can somebody please tell me what I must to to alleviate this?

Thanks for any pointers.

Tim

Nov 18 '05 #2
Thanks for responding.

I'm positive that it is an Access 2000 database. I created it on my machine
and got the error here first. Then I tried a compact/repair and the error
temporarily disappeared. I uploaded the DB to my web host and got the error
again after I ran several select and update queries.

So I exported the tables into a fresh Access 2000 DB and uploaded that to my
web host, and the error is happening all the time now.

In addition, I have also been seeing an error intermittantly when trying to
update a record:

"Search key was not found in any record."

This only happens with ONE particular row in my table.

Thaks for any more info.

Tim
"William LaMartin" <la******@tampabay.rr.com> wrote in message
news:uW**************@TK2MSFTNGP09.phx.gbl...
Are you sure you are using an Access 2000 database? I bet the file is
really an Access97 version. Then if the server has MDAC 2.6 or higher, I
believe, you will get this kind of error.

In the past, I had some sites that used Access97 databases and the web host upgraded to a higher version of MDAC than 2.5 (I think it was) resulting in that sort of message. When I updated the databases to Access version 2000, the error message disappeared.
"timmso" <ti**************@Yahoo.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I'm using Ado.net in an asp.net project with an Access backend.

Whenever I try to do a simple Select or Update, I inevitably see the error "Unrecognized database format". I'm using Access 2000.

Here is some code for an aspx page:

Sub Page_Load(Source As Object, E As EventArgs)
Dim strConnection As String = "Provider=Microsoft.Jet.OleDb.4.0;" & _
"data source=D:\Data\Codelib\codelib.mdb;"
Dim objConnection As New OleDbConnection(strConnection)
Dim strSQL As String = "SELECT CodeID, Title from tblCode;"
Dim objCommand As New OleDbCommand(strSQL, objConnection)
objConnection.Open()
Repeater1.DataSource = objCommand.ExecuteReader()
Repeater1.DataBind()
objConnection.Close()
End Sub

So when I run this a few times, it works fine. Then I get that error

message
and the code no longer works. The error occurs on line

objConnection.Open()

Can somebody please tell me what I must to to alleviate this?

Thanks for any pointers.

Tim


Nov 18 '05 #3
Perhaps it is a corrupted database. Why don't you try the same code with a
fresh test database that has nothing to do with the one giving you the
trouble. Make sure it has a primary key also.
"timmso" <ti**************@Yahoo.com> wrote in message
news:uF**************@tk2msftngp13.phx.gbl...
Thanks for responding.

I'm positive that it is an Access 2000 database. I created it on my machine and got the error here first. Then I tried a compact/repair and the error
temporarily disappeared. I uploaded the DB to my web host and got the error again after I ran several select and update queries.

So I exported the tables into a fresh Access 2000 DB and uploaded that to my web host, and the error is happening all the time now.

In addition, I have also been seeing an error intermittantly when trying to update a record:

"Search key was not found in any record."

This only happens with ONE particular row in my table.

Thaks for any more info.

Tim

Nov 18 '05 #4
Do you mean not to export the tables from one db to another, but just
recreate the db from scratch?

Also, it does have a primary key.

"William LaMartin" <la******@tampabay.rr.com> wrote in message
news:#B**************@TK2MSFTNGP11.phx.gbl...
Perhaps it is a corrupted database. Why don't you try the same code with a fresh test database that has nothing to do with the one giving you the
trouble. Make sure it has a primary key also.
"timmso" <ti**************@Yahoo.com> wrote in message
news:uF**************@tk2msftngp13.phx.gbl...
Thanks for responding.

I'm positive that it is an Access 2000 database. I created it on my machine
and got the error here first. Then I tried a compact/repair and the error temporarily disappeared. I uploaded the DB to my web host and got the

error
again after I ran several select and update queries.

So I exported the tables into a fresh Access 2000 DB and uploaded that

to my
web host, and the error is happening all the time now.

In addition, I have also been seeing an error intermittantly when trying

to
update a record:

"Search key was not found in any record."

This only happens with ONE particular row in my table.

Thaks for any more info.

Tim


Nov 18 '05 #5
Just make up a test database with one table which has a couple of records
and see if you can access that.

"timmso" <ti**************@Yahoo.com> wrote in message
news:uQ****************@TK2MSFTNGP09.phx.gbl...
Do you mean not to export the tables from one db to another, but just
recreate the db from scratch?

Also, it does have a primary key.

"William LaMartin" <la******@tampabay.rr.com> wrote in message
news:#B**************@TK2MSFTNGP11.phx.gbl...
Perhaps it is a corrupted database. Why don't you try the same code with
a
fresh test database that has nothing to do with the one giving you the
trouble. Make sure it has a primary key also.
"timmso" <ti**************@Yahoo.com> wrote in message
news:uF**************@tk2msftngp13.phx.gbl...
Thanks for responding.

I'm positive that it is an Access 2000 database. I created it on my

machine
and got the error here first. Then I tried a compact/repair and the error temporarily disappeared. I uploaded the DB to my web host and got the

error
again after I ran several select and update queries.

So I exported the tables into a fresh Access 2000 DB and uploaded that

to
my
web host, and the error is happening all the time now.

In addition, I have also been seeing an error intermittantly when

trying to
update a record:

"Search key was not found in any record."

This only happens with ONE particular row in my table.

Thaks for any more info.

Tim



Nov 18 '05 #6
Ok, I have created a brand new database and am trying it out. So far it
seems OK. I'll have to play around with it and see how it goes.

Thanks for your help.

"William LaMartin" <la******@tampabay.rr.com> wrote in message
news:#K**************@TK2MSFTNGP10.phx.gbl...
Just make up a test database with one table which has a couple of records
and see if you can access that.

"timmso" <ti**************@Yahoo.com> wrote in message
news:uQ****************@TK2MSFTNGP09.phx.gbl...
Do you mean not to export the tables from one db to another, but just
recreate the db from scratch?

Also, it does have a primary key.

"William LaMartin" <la******@tampabay.rr.com> wrote in message
news:#B**************@TK2MSFTNGP11.phx.gbl...
Perhaps it is a corrupted database. Why don't you try the same code

with
a
fresh test database that has nothing to do with the one giving you the
trouble. Make sure it has a primary key also.
"timmso" <ti**************@Yahoo.com> wrote in message
news:uF**************@tk2msftngp13.phx.gbl...
> Thanks for responding.
>

Nov 18 '05 #7

"timmso" <ti**************@Yahoo.com> wrote in message
news:uF**************@tk2msftngp13.phx.gbl...
Thanks for responding.

I'm positive that it is an Access 2000 database. I created it on my machine and got the error here first. Then I tried a compact/repair and the error
temporarily disappeared. I uploaded the DB to my web host and got the error again after I ran several select and update queries.

So I exported the tables into a fresh Access 2000 DB and uploaded that to my web host, and the error is happening all the time now.

In addition, I have also been seeing an error intermittantly when trying to update a record:

"Search key was not found in any record."

This only happens with ONE particular row in my table.

Thaks for any more info.

Tim
"William LaMartin" <la******@tampabay.rr.com> wrote in message
news:uW**************@TK2MSFTNGP09.phx.gbl...
Are you sure you are using an Access 2000 database? I bet the file is
really an Access97 version. Then if the server has MDAC 2.6 or higher, I
believe, you will get this kind of error.

In the past, I had some sites that used Access97 databases and the web host
upgraded to a higher version of MDAC than 2.5 (I think it was)

resulting in
that sort of message. When I updated the databases to Access version

2000,
the error message disappeared.
"timmso" <ti**************@Yahoo.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I'm using Ado.net in an asp.net project with an Access backend.

Whenever I try to do a simple Select or Update, I inevitably see the

error "Unrecognized database format". I'm using Access 2000.

Here is some code for an aspx page:

Sub Page_Load(Source As Object, E As EventArgs)
Dim strConnection As String = "Provider=Microsoft.Jet.OleDb.4.0;" & _ "data source=D:\Data\Codelib\codelib.mdb;"
Dim objConnection As New OleDbConnection(strConnection)
Dim strSQL As String = "SELECT CodeID, Title from tblCode;"
Dim objCommand As New OleDbCommand(strSQL, objConnection)
objConnection.Open()
Repeater1.DataSource = objCommand.ExecuteReader()
Repeater1.DataBind()
objConnection.Close()
End Sub

So when I run this a few times, it works fine. Then I get that error

message
and the code no longer works. The error occurs on line

objConnection.Open()

Can somebody please tell me what I must to to alleviate this?

Thanks for any pointers.

Tim



Nov 18 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: qbsu21th | last post by:
Dear Sir/Madam, I'm writing a small VB6.0 and Access 2002 application in XP OS. I selected the data control property RecordSource, I got the "Unrecognized database format 'xxx/xx/*.mdb' " error....
14
by: L Mehl | last post by:
I tested a FE/BE application developed in A2000 on a A2002 machine and got this message when exiting the app. Clicking the only available button "OK", exits the application, as intended. The FE...
7
by: kai | last post by:
Hi, I have XP Pro and VS2005 final version. I have been running some examples from a MS Press books (ASP.NET 2.0 Core Reference and), I run into this problems: Parser Error Message:...
1
by: Trygve Lorentzen | last post by:
Hi, my webservice is running on Win2000 SP4, IIS 5.0 fully patched, connecting to a MySQL database and mainly returning Typed DataSet's from webmethods. After running for a while, generally a...
1
by: Rabbit | last post by:
Can anyone tell me why my web developed in .net 2.0, using Access database (.mdb). working fine at my development machines, but when I deploy it onto new Windows Server 2003, the web returns...
6
by: James12345 | last post by:
i have created a database for our advisors to log their call types. It is being run on about 10 different machines. Every couple of weeks, when someone tries to open it, the error Unrecognized...
1
by: syed_razi | last post by:
I have a VB 6.0 application using Access as backend. It is being used on a local area network. The backend database is password protected. The problem is that the database gives me a run time...
4
by: HeislerKurt | last post by:
I'm having trouble opening a database a client has sent me. I keep getting an "unrecognized database format" error. The database was created in Access 2003. I'm trying to open it with Access...
4
by: Hepburn08 | last post by:
Hi, I need some help opening a corrupt Microsoft Access database file. I get an error message that says "unrecognized database format". Since I can't open it, I can't export the data to another new...
6
by: MISASIA | last post by:
I really hope someone can help me... My office is using a Menu which running VB. There got many button in that Menu and one of the button which name as "GMR" hit error. Its prompt a message box...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.