Go to http://aloha-webdesign.com and look at SQLGen 3.0 there is a free demo with open source code that gets a list of tables, columns etc from SQLServer, Access.
Download the trial version of the software and you can see how this is done with the ADO object. John -----Original Message----- From: Costas Piliotis [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 10:30 AM To: CF-Talk Subject: RE: Get list of tables from a SQL Server DB Actually, surprisingly, either work :) Funny... I think the only difference between the two fields comes when you get into indices. With tables, views, and stored prcedures, they look the same. -----Original Message----- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 10:10 AM To: CF-Talk Subject: RE: Get list of tables from a SQL Server DB is it xtype?.....I thiught it was just type but that's off the top of my head -----Original Message----- From: Costas Piliotis [mailto:[EMAIL PROTECTED]] Sent: 26 April 2002 18:07 To: CF-Talk Subject: RE: Get list of tables from a SQL Server DB Uh... Isn't it: select [name] from sysobjects where xtype = 'U' -----Original Message----- From: Tim Heald [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 9:58 PM To: CF-Talk Subject: RE: Get list of tables from a SQL Server DB <CFQUERY name="getTables" datasource="#dsdata#"> Select name >From systables Where xType = u </CFQUERY> <CFSET tableList= valueList(getTables.name)> Tim Heald ACP/CCFD Application Development www.schoollink.net -----Original Message----- From: Vishal Narayan [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 12:42 AM To: CF-Talk Subject: Get list of tables from a SQL Server DB Is there any way I can get the list of tables in a SQL 2000 DB programmatically ? I guess what I need is a limited form of sp_help, as long as it just gives me all the user-created tables, system tables not required. Vishal. ______________________________________________________________________ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists