Go Back  Xtreme Visual Basic Talk > Visual Basic .NET (2002/2003/2005/2008, including Express editions) > .NET Database and Reporting > Database update


Reply
 
Thread Tools Display Modes
  #1  
Old 01-10-2008, 09:47 PM
dudley221 dudley221 is offline
Newcomer
 
Join Date: Jan 2008
Posts: 2
Default Database update


I have imported a number of tables from an old Dbase III system into Access. When I reference the tables, usinf Access, all works very well but when I make modifications to the Access database with VB.net I can't do an Update to the file - help.
Reply With Quote
  #2  
Old 01-11-2008, 07:50 AM
wayneph's Avatar
wayneph wayneph is offline
Web Junkie

Retired Moderator
* Expert *
 
Join Date: Apr 2004
Location: D/FW, Texas, USA
Posts: 8,393
Default

2 things to check...

1. Make sure that your user has Create and Delete permissions on the directory containing the Access Database. It is required for Access to process the table locking. (.ldf file)
2. Make sure your application is set up to use the existing copy of your database. If you included the file in your project, it may be copying the database locally each time your project starts. That would appear that your database wasn't being updated because the updates are being made in a different file.
__________________
-- wayne, MSSM Retired
> SELECT * FROM users WHERE clue > 0
0 rows returned
Reply With Quote
  #3  
Old 01-11-2008, 08:58 AM
dudley221 dudley221 is offline
Newcomer
 
Join Date: Jan 2008
Posts: 2
Default

Thanks but I don't think this is the problem. I get a message on the update command of: changes = dataAdapter.Update(dt)

"Dynamic SQL generation for the UpdateCommand is not supported against a SelectCommand that does not return any key column information."
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->