Re: How do I issue SQL to a Access database from command line
From: Douglas J. Steele (NOSPAM_djsteele_at_NOSPAM_canada.com)
Date: 10/08/04
- Next message: Amy Vargo: "RE: Foxpro 2.5 link from Acccess 2000"
- Previous message: Mary Chipman: "Re: How do I issue SQL to a Access database from command line"
- In reply to: Karen Middleton: "How do I issue SQL to a Access database from command line"
- Next in thread: BillB: "Re: How do I issue SQL to a Access database from command line"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 8 Oct 2004 15:16:06 -0400
Mary's answered most of your questions, but to answer your last question,
you can query the (normally hidden) MSysObjects table.
SELECT MSysObjects.Name AS TableName
FROM MSysObjects
WHERE (((MSysObjects.Type)=1)
AND ((MSysObjects.Flags)=0));
will give you all of the tables in the database. Type = 6 will give you all
linked tables, Type = 4 will give you all tables linked through ODBC, and
Type = 5 will give you the queries.
-- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no e-mails, please!) "Karen Middleton" <karenmiddleol@yahoo.com> wrote in message news:a5fd468a.0410080253.5f885c9e@posting.google.com... > Sorry, I am used to Oracle and SQL Server where we use a command > window like SQLPLUS or ISQL/W which will enable me to run SQL commands > against the database. > > The View > SQL option is very cumbersome in Access is there a simple > command line tool that I use to issue any SQL statement against a > Access database that can execute the query and return the results. > > Also, is there a SQL command to find out all Table names in a Access > database and all queries(views) in a Access database. > > Thanks > Karen
- Next message: Amy Vargo: "RE: Foxpro 2.5 link from Acccess 2000"
- Previous message: Mary Chipman: "Re: How do I issue SQL to a Access database from command line"
- In reply to: Karen Middleton: "How do I issue SQL to a Access database from command line"
- Next in thread: BillB: "Re: How do I issue SQL to a Access database from command line"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|