this code works for SQL Server 7.

I don't know how to do it in Access (assuming it's possible).  I do 
know
that you instantiate a windows object using CFOBJECT that will give you 
what
you need, but that's probably more involved than what you're looking to 
do.

If you run a query on a table you can get a comma delimited list of the
query columns with this variable: #myQuery.columnList#

+-----------------------------------------------+
Bryan Love
  Macromedia Certified Professional
  Internet Application Developer
  Database Analyst
Telecommunication Systems
[EMAIL PROTECTED]
+-----------------------------------------------+

"...'If there must be trouble, let it be in my day, that my child may 
have
peace'..."
        - Thomas Paine, The American Crisis



-----Original Message-----
From: Gyrus [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 09, 2002 3:32 PM
To: CF-Talk
Subject: Re: SQL for grabbing list of tables in DB / fields in table?


> SELECT so.name, sc.name
> FROM sysobjects so, syscolumns sc
> WHERE so.type = 'U' AND so.ID = sc.ID

This doesn't seem to work with Access DB. Is there an
equivalent? Which DBMS is this code compatible with?

cheers,

- Gyrus

~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- [EMAIL PROTECTED]
work: http://www.tengai.co.uk
play: http://www.norlonto.net
- PGP key available
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

______________________________________________________________________
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to