'Id' is not an index in this table - MS ACCESS - ms-access

I am getting errors in Access when attempting to open both the database
and the table.
Error: 'Id' is not an index in this table
Please help me, this is in production.
May Anyone Please share their expertise if come across with same scenario

It means that database corrupted.
Try to restore database as it described here. Also check this, item 20 and this. And finally check how to prevent corruption.

I also had this error message. Unfortunately the links provided by Sergey only helped in so far as that it became clear to me that my Current DB was unrecoverable.
I fixed the issue by:
Creating a new Access DB
Manually exporting each table from the old one (Access still allowed me to export to another DB, eventhough I got the error message on each and every export)
Recreating all necessary relationships between tables in the DB
Note: This solution worked well for me because the error appeared in the backend of my DB. If you have an unsplit DB, this could be a huge effort.

Related

Can't compact an access MDB

I have a client with a reaaally old MDB which we didn't make and they can't contact the guy who did it and recently it started showing the error:
Cannot open database “. It may not be a database
that your application recognizes, or the file may be corrupt.
Even when I try to export all the tables it just keep showing the same error and if I try to Compact and Repair I get the error that I don't have permission to do so. I have tried with every single user on the computer. If I restore the previous version all new data will be lost and will just happen again eventually as it doesn't let me compact either and even if I try creating a new database or table in another database, it doesn't let me import the data into it.
I can read all the tables but can't even copy that information. I'm at a loss of what to do and they asked me to have it for tomorrow.
I will be thankful for any tip you can give me for solving this error
Edit:
I have tried opening the file with a newer access to see if I can compact and it doesn't let me enter with any user even though the MDW is the same
I solved it! And this is how:
I noticed that the database was about 1'99GB which is almost the size limit of an access database so I just needed to Compact and Repair but it didn't let me because of permissions...
The database had another extra user which we didn't see before for any reason, that user was not even an admin, he was the real user who created the database (even though it kept telling me everywhere that the database was made by the admin and that he was the propietary...)
Since compacting gave me an error that couldn't find the database "Tempmsysaccessobjects", I just had to google it and found the solution in a spanish forum where they recommended creating a new database and importing all old data and with this user it let me do it!
Thank guys for helping!

importing a database into phpmyadmin #1044 - Access denied for user Can't Edit File

I'm right now trying to upload a 1.3gig sql text file to phpmyadmin and each time I do it I get the following issue.
my issue
I've already tried splitting the file and editing out the CREATE DATABASE line but each time I try opening it in notepad, notepad++ and emeditor I get a bunch of random characters, clearly there's an issue with the encoding. It's not something I can easily export since another company handles that and I have no access to it. I don't care how my SQL text file is opened, I just need a way to view it and I can't find one.
Thanks for any help you can provide!
ISSUE IS SOLVED!!!
You're trying to create and then write the database named mysql. You Can't Do That™.
You should treat that database, and the information_schema and performance_schema databases, as readonly. They provide ways to retrieve information about the server via SELECT operations. Except in very specific special cases, writing those databases will at best do nothing and at worst trash your server. MySQL tries to prevent you from doing damage by throwing privilege errors when you try to alter those databases.
In a comment you mention that you are confident you can fix an issue with your system via the mysql data base. With respect, that's entirely incorrect.

Drupal The requested page "/" could not be found

I am working for a client. I have migrated a drupal database into a new site and the installation went through without any issues but I am getting this message when loading the website "The requested page "/" could not be found.". Apart from this I have tried to log into the admin but I was unable to login. I thought of looking directly into the database as advised from other forums. But I cant find the "Users" table which is suppose to hold the user details. Can anyone please let me know if previous versions of drupal might have not include the "users" table? or is there a way to go about the "The requested page "/" could not be found." issue. Thank you.
I also found this https://drupal.org/node/142289 - but im not sure how to apply repair table in mysql. There might also possibly be other tables which may require repair and cant be found like the "Users" table.
If your DB is missing tables or corrupt I think taking a new dump of the DB will be the easiest option.
Both D6 and D7 have a users table.

MySql issue on playapps

I have deployed my play! application on http://www.playapps.net/.
All seemed to start OK but for some reason my queries are not working.
I have imported my script from local to their server and even I have the error:
Access denied for user 'play'#'localhost' to database 'da' (but it created my tables into their play schema there and imported my data).
Can this error be an issue for my not displaying data from DB?
Because I see no error in the logs.
Is here anybody who deployed app on this hosting solution and had this error also?
UPDATE: I've solved the above error, so now the import of my tables is done directly in play database. I log in with ssh user, open mysql console and I can see the tables.
But still, the query from my site is returning empty results. And locally it works perfectly.
Do I need any other configuration apart of this?
%playapps.application.mode=prod
%playapps.application.log=INFO
%playapps.db=mysql:play:play#play
%playapps.jpa.ddl=update
Very ugly situation.
My tables were not with capital letters. Play was looking for "Magazine" table (it created it but was empty) and I had also "magazine" table populated.
Maybe it will be useful for someone.
Ps: what was quite strange was that locally, on windows it worked.

Linq to SQL and randomly resetting data base table

We have an issue we are seeing where a table seems to be getting reset, the records are deleted and the primary key is reset. This then causes issues with another table that joins to it. I have a theory it might be to do with the connection dropping out when trying to retrieve info from the data context and then submitting a blank/default table. It looks like the data context is being reused rather than creating a new one for each unit of work which I think is the wrong thing to do but i was wondering if this would be the cause of the issue?
when i used local database, i faced same problem. in every run,
visual studio adds main database files into the debug folder and overwrites.
so i see blank database after run. but there is no problem,
because after releasing the solution it happenings not same, and problem disappears.