Results 1 to 12 of 12

Thread: how can i print table data?

  1. #1
    Join Date
    Jul 2003
    Posts
    5

    how can i print table data?

    Please excuse this beginner question - I need to print data from certain columns in a SQL table. How can I do this?
    Thank you very much for the help.

    maf

  2. #2
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    what database? sql server, oracle, ms-access, ingress, sybase, mysql

    what tool you are using to connect to the database?
    Last edited by MAK; 07-10-2003 at 12:26 PM.

  3. #3
    Join Date
    Jul 2003
    Posts
    5
    I am using sql server7 and am accessing it through DotNet (SqlConnection)

    maf

  4. #4
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    from .net datagrid you can use browser -file print to print the data.

  5. #5
    Join Date
    Jul 2003
    Posts
    5
    I am going to sound REALLY dumb (!) - please excuse me! ... you mean dragging a datagrid on the form, populate it and then print from browser?
    Another question - How can I get the data in a text file? Maybe a CSV file?

    Thanks!

    maf

  6. #6
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    From SQL Server you can either BCP out the data check BCP.exe
    or
    your can export it
    or
    you can run DTS
    or
    OSQL

  7. #7
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    You can use DTS to export data in CSV format.

  8. #8
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254

  9. #9
    Join Date
    Jul 2003
    Posts
    5
    Thank you both MAK and shailesh for the info ... I will read up on DTS in the next hour or so and try out your suggestions ... I am just starting with this so MANY thanks for your help ... if there are any good links you can suggest I would be very grateful.
    One more question, if you don't mind: How do I get the data in a text file from Enterprise manager?
    Thanks
    maf

  10. #10
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    From EM. click on the menu - TOOLS- Data transformation services- export

  11. #11
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254

  12. #12
    Join Date
    Jul 2003
    Posts
    5
    Awesome! Thanks!

    maf

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •