Wrox Programmer Forums
Classic ASP Professional For advanced coder questions in ASP 3. 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 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old September 15th, 2006, 10:29 AM
Friend of Wrox
Join Date: Oct 2004
Posts: 198
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to itHighway
Default Import data in CSV file


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

================================================== ======
================================================== ======
================================================== ======
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,"

txtA = "Info1,Info2,Info3,Info4,Info5,Info6,"

do while NOT rAdmin.EOF

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Import data to CSV itHighway Classic ASP Basics 0 September 15th, 2006 10:31 AM
Excel Vs CSV file - import performance itHighway Classic ASP Databases 0 August 5th, 2006 03:40 PM
Transfering data from csv file to data base g_vamsi_krish ASP.NET 1.0 and 1.1 Professional 2 May 16th, 2006 11:58 PM
how do I import CSV file into SQL Express 2005 victor888 C# 2005 0 March 20th, 2006 02:55 PM
how to import data from excel,csv into sql server therisingsun ASP.NET 1.0 and 1.1 Basics 2 October 1st, 2005 12:17 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.