Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

best way to extract T-SQL from ADP 1

Status
Not open for further replies.

psimon88

IS-IT--Management
Jul 21, 2005
66
US
Hello

I am more familiar with MDB files, but there has to be a way to do this.

I have a MS Access 2003 .ADP file and would like to get the T-SQL for some views without cutting and pasting en masse.

I don't see a 'documenter', as I would in an MDB. Anyone with any suggestions?

Thanks.

ps
 
Are you familiar with the system tables that are included with every database in sql server. Some of the tables are sysobjects, syscolumns, syscomments, etc......

Select * from sysobjects where xtype = 'U'
this will give information on user tables.

I believe views would be xtype of V. The view script should be in syscomments so join sysobjects to syscomments to get this information. Do some investigation on the system tables.
 
You can also get the information from the INFORMATION_SCHEMA.

select Table_name,
view_definition
from INFORMATION_SCHEMA.VIEWS
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top