INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Crystal report on SQL table structure?

Crystal report on SQL table structure?

(OP)
Is it possible to write a crystal report on the SQL table structure? For example on a given database, I'd like to see:

Table Name
Field1Name Field1DataType Field1Length Field1AllowsNulls

Field2Name Field2DataType Field2Length Field2AllowsNulls

etc., etc.

This is for SQL Server 2014. Any insights appreciated.

Software Training, Implementation, Programming and Support for Macola Progression, Macola ES, Synergy, and Crystal Reports. Check out our Macola tools: www.gainfocus.biz/exceladdin.html

RE: Crystal report on SQL table structure?

I believe that information is one of the system tables (do not remember which one). If you have access to the system tables, then you should be able to report on it.

RE: Crystal report on SQL table structure?

I checked what kray4660 was referring to. When you select your tables in Crystal, choose INFORMATION_SCHEMA (instead of DBO) and under that choose the COLUMNS table.
In your report use selection to say {COLUMNS.TABLE_NAME} = yourTableName (whatever your table is named).

Then the fields available should give you the fields with their attributes.

-Andy

RE: Crystal report on SQL table structure?

(OP)
AndyMc,

That was perfect thank you. As a followup are you aware of an information_schema that gives info on indexes?

Software Training, Implementation, Programming and Support for Macola Progression, Macola ES, Synergy, and Crystal Reports. Check out our Macola tools: www.gainfocus.biz/exceladdin.html

RE: Crystal report on SQL table structure?

Sorry - I don't know.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close