Generate csv file from sql table

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Generate csv file from sql table

    I am looking to do the following from a C# ASP.Net applicatio
    1. Generate a DS from a SQL pull of a single table. Once I have pulled the data (Display to user is not required, just notification that the data has been gathered)
    2. Convert the DS to a .CSV format and place the file in a directory with userID and date/time for the file name. IE. JohnD20040430_1, JohnD20040430_2(If a second file placed)

    Any suggestions on where to look to find samples to accomplish this

    Thanks, Tom
    ththomps Guest

  2. Similar Questions and Discussions

    1. Manually generate a table of contents(TOC)
      I am trying to understand how the bookmarks in a table of contents work so I can make manual entries to it. When I generate the TOC with Layout>TOC...
    2. Is there a wizard to generate a web page from MS Access table?
      Hello Experts, We are using ASP to develop an application. I would like to know if there is any activeX object or wizard which would generate a...
    3. Generate a table of thumbnails on the fly without saving to disk
      Hi, I am trying to present the images in a folder as thumbnails in a dynamically created asp:table. I however do not want to save the thumbnails...
    4. Generate Table script from query analyzer...
      You can use SQL-DMO to do that but not straight tsql. -- Andrew J. Kelly SQL Server MVP "Robert Taylor" <robertt@rtnetworks.com> wrote...
    5. How to generate a document from table schema?
      In article <bc503f80.0306270809.50bdb2cd@posting.google.com>, dnlchou@yahoo.com says... I've done that with Sybase PowerDesigner. After 'reverse...
  3. #2

    Default Re: Generate csv file from sql table

    ththomps wrote:
    > I am looking to do the following from a C# ASP.Net application
    > 1. Generate a DS from a SQL pull of a single table. Once I have
    > pulled the data (Display to user is not required, just notification
    > that the data has been gathered).
    > 2. Convert the DS to a .CSV format and place the file in a directory
    > with userID and date/time for the file name. IE. JohnD20040430_1,
    > JohnD20040430_2(If a second file placed).
    >
    > Any suggestions on where to look to find samples to accomplish this?
    >
    > Thanks, Tom
    This is a classic asp newsgroup. While you may be lucky enough to find a
    dotnet-savvy person here who can answer your question, you can eliminate the
    luck factor by posting your question to an appropriate group. I suggest
    microsoft.public.dotnet.framework.aspnet.

    HTH,
    Bob Barrows

    --
    Microsoft MVP -- ASP/ASP.NET
    Please reply to the newsgroup. The email account listed in my From
    header is my spam trap, so I don't check it very often. You will get a
    quicker response by posting to the newsgroup.


    Bob Barrows [MVP] Guest

  4. #3

    Default RE: Generate csv file from sql table

    Hello Tom,

    For your questions, please refer to the following:

    1) It is an easy work by using dataset. Just run select * from tablename to
    get the data. When the function returns, all the data should be in dataset
    already.

    2) Please refer to
    [url]http://weblogs.asp.net/fmarguerie/archive/2003/10/01/29964.aspx[/url] for how to
    save the contect in a dataset to a csv file.

    Also, Bob is right that it would be best to post these questions in the
    following newsgroup.

    microsoft.public.dotnet.framework.aspnet

    All ASP.NET programming issues, configuration and other questions are
    posted in the newsgroup above.

    The reason why we recommend posting appropriately is you will get the most
    qualified pool of respondents, and other partners who the newsgroups
    regularly can either share their knowledge or learn from your interaction
    with us. Also, this is to make sure that the responders can better track
    the problem.Thank you for your understanding.

    Best regards,
    Yanhong Huang
    Microsoft Community Support

    Get Secure! ¨C [url]www.microsoft.com/security[/url]
    This posting is provided "AS IS" with no warranties, and confers no rights.

    Yan-Hong Huang[MSFT] Guest

  5. #4

    Default RE: Generate csv file from sql table

    Hi Tom,

    Have you successfully resolved this issue? If there is any unclear, please
    feel free to post in the group that I recommended or here. Thanks very much.

    Best regards,
    Yanhong Huang
    Microsoft Community Support

    Get Secure! ¨C [url]www.microsoft.com/security[/url]
    This posting is provided "AS IS" with no warranties, and confers no rights.

    Yan-Hong Huang[MSFT] Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139