RE: VB Read only problem with Informix.. HELP!!!!
Posted in 1997
Topics: SQL Development & Query Writing, Connectivity: ODBC / JDBC / .NET, Server Administration
Hi,
You have only mentioned that Visual Basic tells you 'read only' while
accessing some tables. How you are accesing is not clear. But there is
a possible situation when this problem occurs.
Are you creating a snapshot, dynaset or table type recordset to access
data in Informix? In case you are creating a dynaset and you want to
do any insert or update, then the table should have a unique index on
it. If there is no index then the 'read-only ' problem may occur.
This problem may also occur if you creating a dynaset from a join of two
or more tables.
Hope this helps.
OmDutt Sharma
}----------
}From: smvaidya@auto.rockwell.com[SMTP:smvaidya@auto.rockwell.com]
}Sent: 15 January 1997 21:10
}To: informix-list@rmy.emory.edu
}Subject: VB Read only problem with Informix.. HELP!!!!
}
}Hi,
}
}We have been accessing the Informix OnLine version 7 DB via
}VB(in NT)-Intersolv ODBC(NT)-I/NET(NT)-Informix(UNIX) for over several
}months.
}
}Yesterday I created a new table in the same database and granted the
}privileges (SELECT, UPDATE, DELETE, INSERT) to all the required users.
}I tested the table for SELECT and INSERTS and it worked fine on the
}UNIX
}machine for me and another user. I created the table in dbaccess,
}checked
}the privileges and it looks good.
}
}However, when I access the table from VB it tells me that the table is
}read only and I cannot insert new records, however all the old tables
}are
}fine and work just fine and I can insert, select etc... any idea what
}needs
}to happen??? where ??? HELP!!! I have users on my tail asking me what
}wrong???
}
}H-E-L-P!!!!!!!!!
}
}If possible please reply directly to smvaidya@auto.rockwell.com else to
}the
}newsgroup. Thanks in advance...
}
}Sham Vaidya
}
}