Re: Copying access objects using .net



Val, thank you for your response. Although I can create a table in this
manner, it appears that I cannot create a query. Am I correct?
--
Thanks, Bob


"Val Mazur (MVP)" wrote:

> Hi,
>
> You need to use ADOX library to do this. ADO and ADO.NET manipulate data and
> could execute DDL statements, like CREATE TABLE etc, but they do not
> transfer objects from one db to another one as is. If you would like to
> transfer table using ADO.NET, then you need to create the table and all the
> indexes first using CREATE TABLE statement and then copy data.
> --
> Val Mazur
> Microsoft MVP
>
> http://xport.mvps.org
>
>
>
> "Bob" <Bob@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:83A9CA0C-AE90-4012-9885-DFD067B76CBB@xxxxxxxxxxxxxxxx
> > How do I program vb.net to copy a query or table from one MS Access
> > database
> > to another?
> >
> > I'd like to accomplish what import does when it copies Access objects
> > (primarily queries but some tables) from another database into the
> > database
> > where the import action is selected---EXCEPT that I'd like to do this
> > externally with a VB.net program.
> >
> > --
> > Thanks, Bob
>
>
>
.



Relevant Pages

  • Re: Copying access objects using .net
    ... In order to copy a query or table from one MS access database to another, ... This site contains the code in order to accomplish the requirement and uses ... > I'd like to accomplish what import does when it copies Access objects ...
    (microsoft.public.dotnet.general)
  • Re: DBMS and lisp, etc.
    ... Naively implemented with SQL, again for 10 ... (1 query for the initial orders, 1 query for each order for its ... soon as you upgrade to the SQL database. ... (eq (order-customer orderA) ...
    (comp.lang.lisp)
  • Re: OT: SQL
    ... query processing. ... FROM Employees e, Employees m, Management mgt ... Manager and Employee Salaries. ... The scheme used does not model database files in general, ...
    (sci.logic)
  • Re: access 2003
    ... I removed the parameters from the form query source. ... boxes from the form header, events, code, etc and ran the form query source ... forms queries and the SQL because syntax of the SQL will change randomly. ... the Access 97 database, I wouldn't have thought any expressions would be ...
    (microsoft.public.access.conversion)
  • RE: Import external data - web query
    ... Your reply for my query is very extensive, this is for importing a file from ... The data source I want isn't listed in the Select Data Source dialog box. ... information used to connect to a database. ... Check your driver First, make sure you have the right ODBC driver (Open ...
    (microsoft.public.excel.misc)