yep ,,,, You can do this ( verry easy ) with ADOX
objADOXDatabase.Tables(oldName).Name = newName
As DDL is not yet implemented in ADO.NET MS recomends using ADOX to perform
DDL
Van: "johnb41" <or****@informatik.com>
Onderwerp: Re: Adding Columns to Jet/Access database
Datum: woensdag 29 juni 2005 17:10
I searched all 3 links, and there is no command for "Renaming" a table.
I searched the web, and SQL does have a Rename command. Is it not
available for Jet/Access?
Does anyone know how to rename a table in SQL for Jet/Access?
Thanks,
John 6 890
On Sat, 2 Jul 2005 10:23:01 +0200, "m.posseth" <po*****@planet.nl> wrote:
¤
¤
¤ yep ,,,, You can do this ( verry easy ) with ADOX
¤
¤ objADOXDatabase.Tables(oldName).Name = newName
¤
¤ As DDL is not yet implemented in ADO.NET MS recomends using ADOX to perform
¤ DDL
¤
DDL is implemented through the database engine, not ADO.NET, and Access DDL doesn't support table
renaming.
Paul
~~~~
Microsoft MVP (Visual Basic)
Maybe i should have said ,,,, use ADOX for those actions you want to perform
on a Access database that you can`t do with ADO.Net
like creating a database or as in this situation renamming a table ,
altering / managing table schemas
.....or do you really believe that DAO is the prefered way ? ,,,,,
Michel
"Paul Clement" <Us***********************@swspectrum.com> wrote in message
news:aj********************************@4ax.com... On Sat, 2 Jul 2005 10:23:01 +0200, "m.posseth" <po*****@planet.nl> wrote:
¤ ¤ ¤ yep ,,,, You can do this ( verry easy ) with ADOX ¤ ¤ objADOXDatabase.Tables(oldName).Name = newName ¤ ¤ As DDL is not yet implemented in ADO.NET MS recomends using ADOX to perform ¤ DDL ¤
DDL is implemented through the database engine, not ADO.NET, and Access DDL doesn't support table renaming.
Paul ~~~~ Microsoft MVP (Visual Basic)
Michel,
I prefer this sequence ADONET ? not possible ADO ? not possible DOA ? not
possible than sent a message to the dotNet.Data newsgroup, maybe Paul can
help me than.
:-))
Cor
On Tue, 5 Jul 2005 22:27:19 +0200, "m.posseth" <mi*****@nohausystems.nl> wrote:
¤
¤ Maybe i should have said ,,,, use ADOX for those actions you want to perform
¤ on a Access database that you can`t do with ADO.Net
¤ like creating a database or as in this situation renamming a table ,
¤ altering / managing table schemas
¤
That's fine. You could go one step further and suggest that DDL be used if the feature is supported
by the language. This way you're not dependent upon a specific object model such as DAO, ADO or even
ADO.NET.
In any event, I just wanted to make sure that people understood that the DDL language was not
specific to ADO.NET.
¤
¤ ....or do you really believe that DAO is the prefered way ? ,,,,,
No, although DAO is supported it isn't recommended for use in .NET because of its limited threading
model.
Paul
~~~~
Microsoft MVP (Visual Basic)
DOA ??? Death On Arrival :-) that`s even really true spoken when
someone would choose DAO
regards
And Congratulations Cor with your MVP status ,,,,
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:uK****************@TK2MSFTNGP10.phx.gbl... Michel,
I prefer this sequence ADONET ? not possible ADO ? not possible DOA ? not possible than sent a message to the dotNet.Data newsgroup, maybe Paul can help me than.
:-))
Cor
Michel, DOA ??? Death On Arrival :-) that`s even really true spoken when someone would choose DAO
regards
And Congratulations Cor with your MVP status ,,,,
LOL, although I cannot say I do not do that, in this case I surely did not
do it express, however assume that it will be more used now.
In addition thanks,
Cor This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Developer98115 |
last post by:
I need help getting schema information from an existing SQL Server
database. My thought was that you could use ADOX via InterOp. Has
anyone done this successfully and how? I have created a...
|
by: KemperR |
last post by:
Hello Experts outhere,
may be someone can tell me whats going wrong with my ADOX trial.
I have an Access 2002 database with some tables and queries (views)
The code listed below works well up...
|
by: Randy |
last post by:
Hello,
I'm not sure if this is the correct place to post this, but I've got a C#
app in which I've added a reference to the ADOX (Interop.ADOX) library and
I'm using...
ADOX.CatalogClass cat =...
|
by: Randy |
last post by:
I am trying to relink some Oracle tables in an Access database via VB.NET and ADOX. I receive the following error when executing the cat.ActiveConnection link
"Arguments are of the wrong type,...
|
by: Wayne Wengert |
last post by:
I am getting an error that "object no longer valid" at the point indicated
in the code below - I am trying to build a table in an Access 2000 database
using ADOX. Any thoughts on what might cause...
| |
by: Michael |
last post by:
I am trying to create an access database within Net 2003 using the ADOX
library which works fine except when I try to add the AutoIncrement property
to the ContactId column.
I am experiencing a...
|
by: gaffar |
last post by:
Sir, Using ADOX
I am developing an application in vb.net and the backend database is
ms-access. i have created ms-access databse and tables and assigned primary
keys to the tables through the...
|
by: Hexman |
last post by:
I'm creating a new Access table using ADOX. I can add columns and
indexes, but I'm baffled on how to change field properties. Can
someone give me a hand?
Want to change properties such as:...
|
by: Miro |
last post by:
Something weird I have run into when trying to add a boolean field to an
Access table by code.
-Just wondering if anyone else has run into this. ( vb.net 2005 express )
If I add any other...
|
by: parshupooja |
last post by:
Hey all,
I have Arraylist where I have stored names of Tables.I have two datasources one is SQL and one is Access, they have equal number of tabels. I am trying to find Access databse column and...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |