Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Dropping views in MS access  RSS feed

 
Piyush Tripathi
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2628
17
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Piyush Tripathi
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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

Regards,
Piyush
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!