p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0

Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 15th, 2006, 11:31 AM
Friend of Wrox
Points: 945, Level: 11
Points: 945, Level: 11 Points: 945, Level: 11 Points: 945, Level: 11
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2004
Location: , , .
Posts: 178
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to itHighway
Default Import data to CSV

Hello,

This is Zeeshan Ahmed from itHighway. I have an application with my sql database containing about 30000 members records. There are 120 fields for in members table.


I have developed a script to download members data in CSV file but the problem is it only download only 800, 1000 or 1200 members records and after that the download is terminated.

I need to download all 30000 records in CSV file. Is there any solution to the issue I am having?

At the end of this post I have posted a few important lines from my download script.

Any idea..
Any help..
Will really be appriciated..


Thank you
Zeeshan Ahmed
itHighway


================================================== ======
================================================== ======
================================================== ======
Response.Expires = 0
server.ScriptTimeout = 1000
Response.Buffer = false

Response.ContentType = "text/csv"
Response.AddHeader "Content-Disposition", "attachment;filename=Members.csv"


set rAdmin = CONN.execute("SELECT * FROM MEMBERS")


txtA = "Phone Number,E-mail,Name,Street,"
response.Write(txtA)

txtA = "Info1,Info2,Info3,Info4,Info5,Info6,"
response.Write(txtA)
...................
............................

do while NOT rAdmin.EOF

    txtB = ""& rAdmin("PHONE_NUMBER")
    txtB = txtB + ","& rAdmin("EMAIL")
    txtB = txtB + ","& rAdmin("NAME")
    txtB = txtB + ","& rAdmin("STREET")
    response.Write(txtB)
        ...................
        ............................

rAdmin.MoveNext
loop


__________________
Zeeshan Dar
itHighway
web design development, property management software & web based real estate listings software services provider
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Import CSV files to Database in C# prasanna.nadgir C# 2 September 4th, 2007 12:03 PM
Import from CSV to MSDE tables dhol SQL Server DTS 14 June 5th, 2007 05:53 AM
Import data in CSV file itHighway Classic ASP Professional 0 September 15th, 2006 11:29 AM
CSV and Excel sheet import itHighway Classic ASP Professional 0 August 5th, 2006 09:25 AM
how to import data from excel,csv into sql server therisingsun ASP.NET 1.0 and 1.1 Basics 2 October 1st, 2005 01:17 AM



All times are GMT -4. The time now is 04:14 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc