VB5: Updating recordset on MS SQL-Server 6.5 
Author Message
 VB5: Updating recordset on MS SQL-Server 6.5

hi...

i'm writing a client-/server-application with VB5 and
MS SQL-Server 6.5. Database-access are via Jet and DAO.

Everything works fine execpt one thing:
I'm not able to update any recordset i opened...
for example - see this pseudo-code

Set db = myWorkspace.OpenDatabase("DSN")
Set rs = db.OpenRecordset("SELECT * FROM tabKunden", _
    dbOpenDynaset,dbSQLPassThrough+dbSeeChanges)

This recordset is not updateable - trying
rs.update generates a runtime error.

How can I get updateable recordsets?

bye, david



Thu, 08 Nov 2001 03:00:00 GMT  
 VB5: Updating recordset on MS SQL-Server 6.5
I'm having the same problem useing Oracle.  I found that if you create a
single primary key, then you are able to update/delete records.  There is a
problem though, a duel primary key will lock the recordset from opening!?  
Any way around this or is creating a single primary key a Jet limitation?

Thanks..



Quote:
> hi...

> i'm writing a client-/server-application with VB5 and
> MS SQL-Server 6.5. Database-access are via Jet and DAO.

> Everything works fine execpt one thing:
> I'm not able to update any recordset i opened...
> for example - see this pseudo-code

> Set db = myWorkspace.OpenDatabase("DSN")
> Set rs = db.OpenRecordset("SELECT * FROM tabKunden", _
>     dbOpenDynaset,dbSQLPassThrough+dbSeeChanges)

> This recordset is not updateable - trying
> rs.update generates a runtime error.

> How can I get updateable recordsets?

> bye, david



Sun, 11 Nov 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. connecting to MS SQL Server 6.5 using VB5

2. ERwin 2.5 Cascading Deletes/Updates with MS SQL 6.5

3. Error doing update with VB 3.0 and SQL Server 6.5

4. Problems with VB4.0 and MS SQL Server 6.5

5. Record Locking in MS SQL Server 6.5

6. DAO Update Deadlocks SQL Server 6.5, but not 6.0

7. Update problem with VB6 and SQL Server 6.5

8. MS SQL Server 6.5 - Developer Edition

9. Error 10095 with SQL Server 6.5 and updates with cursors

10. VB 4.0 and MS SQL Server 6.5

11. Get Username or Computername after lock (or deadlock) errors from MS SQL server (7 or 6.5)

12. VB 5.0 Enterprise Edition does not contain MS SQL Server 6.5 Developer Edition

 

 
Powered by phpBB® Forum Software