wood burning stoves
The moose likes JDBC and Relational Databases and the fly likes Dropping views in MS access Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Dropping views in MS access" Watch "Dropping views in MS access" New topic
Author

Dropping views in MS access

Piyush Tripathi
Greenhorn

Joined: Jan 28, 2009
Posts: 16
Hi,

I am trying to drop a view dynamically from MS access Database but the below syntax is giving incorrect syntax error.

I am using Drop view <view Name>.
Can anybody suggest what is the way to delete a view.

Regards
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2543
    
  10

According to MSDN, the 2007 version knows the drop view syntax.
http://msdn.microsoft.com/en-us/library/bb177897(v=office.12).aspxThere are other people who reported the same issue, and solved it by using "DROP TABLE <viewname>"

We can help you better if you give us the exact error message.

edit jc: hyperlink fixed


OCUP UML fundamental and ITIL foundation
Piyush Tripathi
Greenhorn

Joined: Jan 28, 2009
Posts: 16
Hi,

The exact error message is "Syntax error in Drop Table or Drop Index"

Regards,
Piyush
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Dropping views in MS access
 
jQuery in Action, 3rd edition