dbTalk Databases Forums  

Exporting table/field names

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Exporting table/field names in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
M. Grass
 
Posts: n/a

Default Exporting table/field names - 05-04-2005 , 05:05 AM






Hi,

I am managing a large database--several hundred tables. The current system
I inherited employs an Excel spreadsheet to manage the details (description,
business rules, etc) of the tables and fields. We would like to convert the
information in this spreadsheet to a more convenient Access database;
however, the information in the spreadsheet has unfortunately not been
maintained with the development of the database.

To seed the new Access dictionary database, I would like to get a dump of
all tables and associated field names from SQL Server. Conveniently, the dump
would be in a format similar to:
TableName1 TableName2 ...
FieldName1.1 FieldName2.1
FieldName1.2 FieldName2.2
FieldName1.3 ...
....

I don't really care what the fields are exported as, CSV, xls, whatever. I
would just prefer to copy these to the new Access data dictionary rather than
type them in manually.

Any ideas?

--Mike

Reply With Quote
  #2  
Old   
Helge C. Rutz
 
Posts: n/a

Default Re: Exporting table/field names - 05-04-2005 , 05:26 AM






Hi Mike,

"M. Grass" <M. Grass (AT) discussions (DOT) microsoft.com> schrieb im Newsbeitrag
news:5F6DBD09-83AE-4A94-AA73-A99C9EAB2812 (AT) microsoft (DOT) com...
Quote:
Hi,

I am managing a large database--several hundred tables. The current system
I inherited employs an Excel spreadsheet to manage the details
(description,
business rules, etc) of the tables and fields. We would like to convert
the
information in this spreadsheet to a more convenient Access database;
however, the information in the spreadsheet has unfortunately not been
maintained with the development of the database.

To seed the new Access dictionary database, I would like to get a dump of
all tables and associated field names from SQL Server. Conveniently, the
dump
would be in a format similar to:
TableName1 TableName2 ...
FieldName1.1 FieldName2.1
FieldName1.2 FieldName2.2
FieldName1.3 ...
...

Any ideas?
not immediatley, but why do you want such a strange format for the data?
Access is a relational database also, so you could just dump the schema
information nearly 1:1 from the sql server.
I think what you realy need are the right formulars in Access.

Helge




Reply With Quote
  #3  
Old   
Paul Smith
 
Posts: n/a

Default Re: Exporting table/field names - 05-04-2005 , 11:52 PM



How about something like: -

select table_name
, column_name
, ordinal_position
, data_type
from information_schma.columns
order by table_name
, ordinal_position

"M. Grass" <M. Grass (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi,

I am managing a large database--several hundred tables. The current system
I inherited employs an Excel spreadsheet to manage the details
(description,
business rules, etc) of the tables and fields. We would like to convert
the
information in this spreadsheet to a more convenient Access database;
however, the information in the spreadsheet has unfortunately not been
maintained with the development of the database.

To seed the new Access dictionary database, I would like to get a dump of
all tables and associated field names from SQL Server. Conveniently, the
dump
would be in a format similar to:
TableName1 TableName2 ...
FieldName1.1 FieldName2.1
FieldName1.2 FieldName2.2
FieldName1.3 ...
...

I don't really care what the fields are exported as, CSV, xls, whatever. I
would just prefer to copy these to the new Access data dictionary rather
than
type them in manually.

Any ideas?

--Mike



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.