If you have COM object, then yes you can get this information. This will be the same code outline as in the VBA macro that I mentioned.
I guess what it amounts to is you have to have programmatic access in some way and just using SQL is not going to work for you. Steve At 04:17 AM 2/9/2005, Nick de Voil wrote: >In Access the main system table is msysobjects but IIRC it only gives you >info at the table level, not the column level. > >I did once achieve what you're trying to do using ADO via COM (CFOBJECT). >Unfortunately I can't find the code right now. > >It worked, although the set of data types reported were very abstract ones - >they just about let you distinguish an integer from a floating-point number >from a character type from a date. > >Nick > >----- Original Message ----- >From: "Stephen Garrett" <[EMAIL PROTECTED]> >To: "SQL" <[email protected]> >Sent: Wednesday, February 09, 2005 12:28 AM >Subject: Re: returning datatypes from table using CF5 > > > > AFAIK, the only way to retrieve the information you are looking for is >with > > VB(A). I can think of some really strange ways to do this with SQLish > > methods, like: > > > > o create a spreadsheet that has a VBA Macro linked to a particular Cell > > o use UPDATE SQL to treat the spreadsheet as a database (yes, this works, > > within bounds) > > updating a particular cell with a database name/path. This would > > trigger the VB Macro to run > > which would then populate the spreadsheet with the tables and and > > other information ( field names) > > o use a SQL Select to retrieve the data from the spreadsheet. > > > > I know, Bizarre, but workable. > > > > Steve > > p.s. In this mode of use, SQL access to microsoft Office products must be > > single threaded. VBA/Excel is not thread safe. Trust me on that one... > > > > At 02:14 PM 2/8/2005, William Kossack wrote: > > >I think I've got sql server figured out but access is > > >problematic. > > > > > >the only solutions I can find for access are in VB > > > > > >when I do a google search for system tables google > > >finds anything but access > > > > > >any help on this would be appreciated > > > > > >I've done several searches > > > > > >--- Cameron Childress <[EMAIL PROTECTED]> wrote: > > > > > > > For SQL Server, you're going to want to look into > > > > sysobjects. Access > > > > is similar, but I can't remember exactly the table > > > > names. Google for > > > > "system tables" and you should get what you need. > > > > > > > > -Cameron > > > > > > > > > > > > On Mon, 7 Feb 2005 15:28:16 -0800 (PST), William > > > > Kossack > > > > <[EMAIL PROTECTED]> wrote: > > > > > we are moving to sql server but some databases are > > > > > still in access > > > > > > > > > > --- Cameron Childress <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > Depending on the database platform, you should > > > > be > > > > > > able to query the > > > > > > system tables to get this information. What > > > > > > platform are you on? > > > > > > > > > > > > -Cameron > > > > > > > > > > > > On Mon, 07 Feb 2005 16:58:18 -0400, william > > > > kossack > > > > > > <[EMAIL PROTECTED]> wrote: > > > > > > > I'm using CF5 > > > > > > > > > > > > > > I need to be able to query a database table > > > > and > > > > > > return the data types. > > > > > > > > > > > > > > I'm currently using queryname.columnlist to > > > > get a > > > > > > list of the field names but I can't seem to get > > > > the > > > > > > data types > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:6:2123 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/6 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:6 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.6 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
