Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 10th, 2005, 05:37 PM
Registered User
 
Join Date: Sep 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default How do I rename MSAccess tables in C#?

Hi,

Im currently working on a project and I need to rename Access Table names programaticaly in C#.

Unlike SQL, Access does not have a sp_rename stored procedure, so how would I go about this in code for an Access db using an oledb connection?

Thanks in advance.
 
Old October 2nd, 2005, 08:47 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anubhav.kumar
Default

hi,

well you can't do it directly through ADO.Net. This is an application level action and for this you have to add reference either to the ms access library or ado 2.8 (COM Interoperability) Then use ADOX Library to initiate ms access as an application inside your c# code and then you can send commands to it. refer to ado documentation for this. if you have ado installed on your system, search for "*.chm" files on your system starting with "ado".

cheers

Anubhav Kumar
 
Old October 8th, 2005, 10:47 AM
Registered User
 
Join Date: Sep 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the reply, thought that would be the case, is that still true for ADO.NET 2?

 
Old October 22nd, 2005, 09:03 AM
Authorized User
 
Join Date: Jul 2005
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by veggiemanuk
 Thanks for the reply, thought that would be the case, is that still true for ADO.NET 2?

You may like to check out http://www.stpworks.com/ which gives a free Microsoft Access web-based administrator in ASP. That should solve your problem of renaming tables.

Vasudevan Deepak Kumar
Personal Web: http://www.lavanyadeepak.tk/
I Blog At: http://deepak.blogdrive.com/





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to link new tables using code to MSAccess Nordiers Access VBA 2 January 10th, 2008 11:35 PM
Connecting to MSAccess swatishah ADO.NET 3 January 19th, 2006 12:08 AM
ASP and MSAccess error fogofogo Classic ASP Basics 2 November 28th, 2005 12:00 PM
MSAccess Limitations if any happygv Access 5 April 19th, 2004 08:45 PM
MsAccess vs SqlServer aslyon ADO.NET 2 January 9th, 2004 03:25 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.