|
-
May 14th, 2003, 12:11 PM
#1
Thread Starter
Lively Member
SQL Error *** RESOLVED ***
I've got a PHP application which reads and updates an MS Access database using odbc and all is working fine. Then when I do a compact and repaire on the database and re-run my php application I get the following sql error:
'Warning: SQL error: [Microsoft][ODBC Microsoft Access Driver]
Operation must use an updateable query., SQL state S1000 in
SQLExecDirect in c:\inetpub\wwwroot\specac\ppc\home.php on
line 20"
But when I revert back to the dbase before the repair everything's fine again. Has anyone ever come across this before.
Hope someone can help
Last edited by aaronskw; Jul 22nd, 2004 at 09:04 AM.
-
May 15th, 2003, 11:31 AM
#2
Frenzied Member
what are line 18-23?
also it sounds like you repair messed up your table.
-
May 19th, 2003, 03:29 AM
#3
Thread Starter
Lively Member
PHP Code:
$Key = time();
//echo "Key $Key";
$result2 = odbc_do ($con, "UPDATE Users SET Key='$Key' WHERE UserID=".$row[1]."");
This works fine apart from after a compact and repair. Also, this only happens on my XP pro machine but on our Win 2000 Server machine I don't get any errors after a compact and repair. Could it be the odbc access drivers on XP. What do you think?
I'm getting really weird php problems ain't I? I'm starting to think php doesn't like me.
-
Jul 22nd, 2004, 09:02 AM
#4
Thread Starter
Lively Member
After months and months I finally tracked this problem down to the Windows Security settings on the database. Arrrggghh.
-
Jul 22nd, 2004, 10:44 AM
#5
Frenzied Member
Do yourself a favor and use something that doesn't need to be "compacted and repaired" all the time.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|