How to print tables in SQL Server 2005

Please support our MS SQL advertiser: Intel Parallel Studio Home
Reply

Join Date: Jan 2007
Posts: 15
Reputation: quiptro is an unknown quantity at this point 
Solved Threads: 0
quiptro quiptro is offline Offline
Newbie Poster

How to print tables in SQL Server 2005

 
0
  #1
Apr 16th, 2007
Hi,

I have a small database with 15 tables and 20-40 records in each table. I just want to ask how can I print all the tables together with their names, atribute names and all the records? (the Print option from the File menu is not active)

Thanks,
Robert
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 16,154
Reputation: jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all 
Solved Threads: 530
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: How to print tables in SQL Server 2005

 
0
  #2
Apr 16th, 2007
It depends

You can either:

Use The MSSQL Managament Studio ( i think)

Write a program / web app to do it

Use Crystal Reports?
If i am helpful, please give me reputation points.
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 1,181
Reputation: hollystyles will become famous soon enough hollystyles will become famous soon enough 
Solved Threads: 67
hollystyles's Avatar
hollystyles hollystyles is offline Offline
Veteran Poster

Re: How to print tables in SQL Server 2005

 
0
  #3
Apr 16th, 2007
In Sql Server Management studio expand databases on the left, expand the database that contains your tables, right click on Database diagrams and choose 'New database diagram', you may at this point receive a message saying you don't have all the support objects required, click ok to have them created. A dialogue box appears with a list of the tables, select them all and click add. Now choose Print from the file menu. You may need to manually size and drag the tables around if you want to fit them to one A4 page.
Last edited by hollystyles; Apr 16th, 2007 at 7:08 pm.
==========================================
Yadda yadda yadda...
Web junky, fevered monkey
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 15
Reputation: quiptro is an unknown quantity at this point 
Solved Threads: 0
quiptro quiptro is offline Offline
Newbie Poster

Re: How to print tables in SQL Server 2005

 
0
  #4
Apr 16th, 2007
Thanks for the prompt response. I followed your instructions and created the diagram and the Print option became active. However, it only printed the diagram and all the relationships mapped, and did not print the tables with their content (the records). I just need to simply print the tables (just like if they were in exel). Thanks.
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 16,154
Reputation: jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all 
Solved Threads: 530
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: How to print tables in SQL Server 2005

 
0
  #5
Apr 17th, 2007
I think you wil need to produce a report then, either by writing an web or local application or by using a report generator (crystal reports maybe?)
If i am helpful, please give me reputation points.
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 1,181
Reputation: hollystyles will become famous soon enough hollystyles will become famous soon enough 
Solved Threads: 67
hollystyles's Avatar
hollystyles hollystyles is offline Offline
Veteran Poster

Re: How to print tables in SQL Server 2005

 
0
  #6
Apr 17th, 2007
In Sql Server Management Studio, expand databases, right click your database and choose tasks -> Export. In the first wizard page choose the source (this should already be the databse you just right clicked), click next. In the destination drop down choose Microsoft Excel, browse to a folder and type a filename, check the box 'First row has column names' click next. Choose the first option 'Copy data from one or more tables or views' click next. Select all the tables and click next, check the box 'Execute immediately' click next, click finish.
==========================================
Yadda yadda yadda...
Web junky, fevered monkey
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 100
Reputation: M_K_Higa is an unknown quantity at this point 
Solved Threads: 2
M_K_Higa's Avatar
M_K_Higa M_K_Higa is offline Offline
Junior Poster

Re: How to print tables in SQL Server 2005

 
0
  #7
Apr 17th, 2007
You can create a view to get the data you want and the import it into excel. The "Import External Data" is in the Data menu, and is wizard based, so it's pretty easy.

If your data changes, all you have to do is refresh your excel sheet and you get updated data as well.
-Mike
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 15
Reputation: quiptro is an unknown quantity at this point 
Solved Threads: 0
quiptro quiptro is offline Offline
Newbie Poster

Re: How to print tables in SQL Server 2005

 
0
  #8
Apr 17th, 2007
Thanks to everybody for the responses. I am not much of a programmer so I can not create an application to produce the reports or make one with existing software, but importing and printing the tables in excel using "Import External Data" was straightforward and quite easy. Thanks.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC