ABA


"בעייה עם מסדי נתונים"
גירסת הדפסה        
קבוצות דיון פיתוח, תיכנות ובניית אתרים נושא #8472 מנהל    סגן המנהל    מפקח   Winner    צל"ש   מומחה  
אשכול מספר 8472
BenDesign

   02:32   05.12.02   
אל הפורום  
  בעייה עם מסדי נתונים  
 
   יש לי בעייה......
אני מנסה להתקין מערכת מסויימת (asp) ואלו ההוראות;
1) "unzipping" the portal .zip file
2) extracting or copying the files to a Web accessible folder
3) connecting to the Access (.mdb) or SQL server database
For Access
- unzip the .zip file to a Web shared (alias or virtual created via IIS) folder
- make sure the '/data' folder is write accesible to the IUSR_MACHINE account
- make sure the database connection paths (cn.Open, user_cn,Open) in 'i_utils' are valid paths to the database

NOTE: "Operation must use an updateable query" -- The most common reason for problems is that the Internet Guest account (IUSR_MACHINE) does not have 'Write' permissions on the database file (.mdb). To fix this problem, use the Security tab in Windows Explorer to adjust the properties for this file so that the Internet Guest account has the correct permissions. When using Microsoft Access databases with ADO, it is also necessary to give the Internet Guest account Write permissions on the directory containing the .mdb file. This is because Jet creates an .ldb file to handle database locking. You may also need to give read/write permission on the Temp folder because Jet may create temporary files in this directory.

For SQL
- unzip the .zip file to a Web shared (alias or virtual created via IIS) folder
- create a database on your SQL server
- execute the included portal.sql script on the new database (WARNING: executing the script on an existing SQL database will delete all tables and data!!)
- update the database connection strings (cn.Open, user_cn,Open) in 'i_utils.asp' for your SQL server database (ie; "PROVIDER=SQLOLEDB;DATA SOURCE=sqlservername_or_ip;UID=myuserid;PWD=mypwd;DATABASE=mydatabase")
עכשיו;
העלתי את כל התיקיות לשרת ונכנסתי והכל עובד אבל כאשר אני מנסה להירשם זה מה שהוא כותב לי:
The database insert failed. Operation must use an updateable query.
למישהוא יש פיתרון?


                                שתף        
מכתב זה והנלווה אליו, על אחריות ועל דעת הכותב בלבד

  האשכול     מחבר     תאריך כתיבה     מספר  
  למיטב הבנתי... eev 05.12.02 12:22 1

       
eev

   12:22   05.12.02   
אל הפורום  
  1. למיטב הבנתי...  
בתגובה להודעה מספר 0
 
   השאילתה שאמורה לעדכן את הנתון שאתה רוצה להוסיף הינה לקריאה בלבד

הסיבות שיכולות להיות:
1 ) הקבצים לקריאה בלבד
2 ) השאילתה מוגדרת על יותר מטבלה אחת במסד הנתונים (JOIN) ולכן לא ניתן לשנות או להוסיף נתונים

פתרון אפשרי:
1) לעבור על כל הקבצים ולבדוק אם הם לקריאה בלבד - ולשנות
2) להכנס לקוד - לאתר את השאילתה המדוברת לבדוק האם אכן היא משתמשת ב-JOIN אם כן לשנות את הקוד שלה כך שהיא תהיה מחוברת רק לטבלה אחת ולנסות שוב

יתכן שיש סיבות נוספות לבעיה אבל אני הייתי מתחיל מבדיקת השניים האלה


                                                         (ניהול: מחק תגובה)
מכתב זה והנלווה אליו, על אחריות ועל דעת הכותב בלבד

תגובה מהירה  למכתב מספר: 
 
___________________________________________________________________

___________________________________________________________________
למנהלים:  נעל | תייק בארכיון | מחק | העבר לפורום אחר | מחק תגובות | עגן אשכול
       



© כל הזכויות שמורות ל-רוטר.נט בע"מ rotter.net